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

Output Code with Labels #1

Open
kevinastock opened this issue Apr 9, 2012 · 1 comment
Open

Output Code with Labels #1

kevinastock opened this issue Apr 9, 2012 · 1 comment

Comments

@kevinastock
Copy link

Assembers can better optimize code using labels whenever possible (by using short literals and relative PC changes). Based on the README the output code uses only absolute values which is impossible to optimize, but it would be ideal if all basic block entry points were marked with labels and any SET PC, xxx or JSR xxx used those labels.

@0x-omicron
Copy link
Owner

The output right now is generated straight to the instructions -- it doesn't generate the .asm files. I got those from running a disassembler on the output of the program.

But I agree with you in two ways: (1) there should be an option to output to .asm instead of .out, and labels should be used there, and (2) the generated .out files should be optimized anyways; another assembler shouldn't be able to do any better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants