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

Various zehn_loader improvements #419

Merged
merged 3 commits into from
May 23, 2024

Conversation

Vogtinator
Copy link
Contributor

  • zehn_loader: Make sure padding ends up in the raw binary
  • zehn_loader: Include ldscript as dependency
  • zehn_loader: Tell the compiler that the malloced header is aligned

Fixes #418

The previous alignment instruction was a noop, as there was nothing past it.
Put alignment into a custom section and make sure it ends up in the binary.
It doesn't know that the function call returns an aligned pointer, so tell
it explicitly. This way it uses aligned loads instead of multiple byte loads.

Here the size goes from 616 to 484, saving more than 20%!
@Vogtinator Vogtinator merged commit 78a8995 into ndless-nspire:master May 23, 2024
2 checks passed
@Vogtinator Vogtinator deleted the zehn_loader-fixes branch May 23, 2024 07:15
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

Successfully merging this pull request may close these issues.

Programs with headers generated by make-prg do not run unless compressed
1 participant