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

AVR: fix branching codegen and add simple optimizer pass #92

Open
pointbazaar opened this issue Sep 10, 2024 · 0 comments
Open

AVR: fix branching codegen and add simple optimizer pass #92

pointbazaar opened this issue Sep 10, 2024 · 0 comments

Comments

@pointbazaar
Copy link
Owner

Since things like brne, brlt and such cannot really be used on their own for branches inside a function (they can only jump up to 64 instructions away), they all have to be

  • inverted branch and use long jmp

or use compare skip if equal and the like and then long jump.

So the mess created by this then has to be optimized away again in some optimizer pass.

@pointbazaar pointbazaar changed the title AVR: Add simple optimizer pass AVR: fix branching codegen and add simple optimizer pass Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant