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

Increase maximum registers allowed in an asm block #44

Open
MichaelBell opened this issue Mar 14, 2015 · 0 comments
Open

Increase maximum registers allowed in an asm block #44

MichaelBell opened this issue Mar 14, 2015 · 0 comments

Comments

@MichaelBell
Copy link

By default, gcc only allows 30 registers to be used in an inline asm block. Especially when using hardware loops it's nice to be able to replace fairly large blocks of code with asm, and I find the 30 register limit a pain given the epiphany has plenty of registers. This is made worse because read/write registers count twice against this limit!

I've done limited testing, but this change seems to work for me:
MichaelBell/epiphany-gcc@0dc1a94

I can submit a pull request if you want, but would like someone with more gcc experience to do a bit of verification first!

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