Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug of issue #871 #907

Merged
merged 1 commit into from
Sep 23, 2024
Merged

Debug of issue #871 #907

merged 1 commit into from
Sep 23, 2024

Conversation

MrDaiki
Copy link
Collaborator

@MrDaiki MrDaiki commented Sep 18, 2024

The PrintASM.format_glob_data function was able to write the same label multiple times, causing the produced assembly code to be incorrect.

By adding a Map to count occurrences of the same variable, the problem is corrected.

There is a test to write (for example the file written by @vbgl in the issue). I wasn't sure where to put it so I didn't (We will need to add it before merging).

@MrDaiki MrDaiki added the bug label Sep 18, 2024
compiler/src/printASM.ml Outdated Show resolved Hide resolved
compiler/src/printASM.ml Outdated Show resolved Hide resolved
@vbgl vbgl added this to the 2024.07.1 milestone Sep 23, 2024
Copy link
Member

@vbgl vbgl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #871.

@vbgl vbgl merged commit 63c1df3 into jasmin-lang:main Sep 23, 2024
1 check passed
@vbgl vbgl deleted the debug-issue-#871 branch September 23, 2024 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants