-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Gain back space in small builds by using lib/libm instead of toolchain libm. #329
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
Conversation
dhalbert
commented
Oct 15, 2017
- Use lib/libm for small (non-Express builds) to gain back a lot of flash space.
- Add flag INTERNAL_LIBM to mpconfigboard.mk files to signal using lib/libm.
- Fix floating-point warnings in lib/libm
- Turn off -finline-limit, no longer needed due to 1.
- Add explicit flags for SPI_FLASH_FILESYSTEM and INTERNAL_FLASH_FILESYSTEM to mpconfigboard.mk files, so they don't need to know the name of the .c file that implements those. Makefile takes care of checking the flags and including the right files.
Didn't start a test build, I think due to my specifying the wrong upstream branch initially. Looks like I can trigger by closing and reopening. Will try that. |
I poked Rosie and restarted Travis. Why not use the internal libm for all builds? Seems like consistency might be better. |
…flash space. 2. Add flag INTERNAL_LIBM to mpconfigboard.mk files to signal using lib/libm. 3. Fix floating-point warnings in lib/libm 4. Turn off -finline-limit, no longer needed due to 1. 5. Add explicit flags for SPI_FLASH_FILESYSTEM and INTERNAL_FLASH_FILESYSTEM to mpconfigboard.mk files, so they don't need to know the name of the .c file that implements those. Makefile takes care of checking the flags and including the right files.
01803d3
to
66db657
Compare
66db657
to
62e3317
Compare
@tannewt This is ready to look at again. Using internal libm for all atmel-samd builds now. Removed the pulseio addition on Gemma/Trinket: that will go in a new pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for finding this! You struck code size gold!