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

crash when using -Os flag at link step #33

Closed
parisseb opened this issue Mar 12, 2023 · 1 comment
Closed

crash when using -Os flag at link step #33

parisseb opened this issue Mar 12, 2023 · 1 comment

Comments

@parisseb
Copy link

parisseb commented Mar 12, 2023

While trying to port a light version of KhiCAS to the ti83/84, I get a 3M binary, and that's too large to load on the calc/emulator. This is much larger than what I get on monochrom Casio with the same code (2M on the Casio). The reason is that the ez80 version is compiled with -Oz, while the Casio version is compiled with -Os. But trying to compile with -Os fails at link step, with the following error:
fatal error: error in backend: unable to legalize instruction: %83:_(s48) = G_LSHR %81:_, %84:_(s8) (in function: sdk_init)
The source code is available here (but I believe it it reproducible with a much smaller source)
https://www-fourier.univ-grenoble-alpes.fr/~parisse/ti/khicas.tgz
Any hope to fix this? Thanks!

@mateoconlechuga
Copy link

I believe this is a duplicate of #12

@jacobly0 jacobly0 marked this as a duplicate of #12 Sep 4, 2023
@jacobly0 jacobly0 closed this as completed Sep 4, 2023
@jacobly0 jacobly0 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2023
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

3 participants