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

Fat binaries for modules? #90

Open
reticulatedpines opened this issue Mar 17, 2023 · 0 comments
Open

Fat binaries for modules? #90

reticulatedpines opened this issue Mar 17, 2023 · 0 comments

Comments

@reticulatedpines
Copy link
Owner

ARMv7 cams have Thumb, but modules are built only as ARMv5 / ARM, for compatibility reasons. We have a custom loader via tcc anyway, so we could perhaps build these as fat binaries, containing a Thumb and non-Thumb build, with the loader detecting the best choice to load.

The Thumb builds have quite a lot less memory footprint (and presumably some speed improvement, as well as lower I-cache pressure).

ARMv5te supports Thumb (just 1, not 2?) so it might be an option there as well. This might mean three builds per file is optimal, but we have a lot more disk space than memory so I think this would be fine.

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