mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-30 08:24:11 +01:00
9f8d22961f
These compiler options place each function and each global variable into its own ELF section in each .o file. This, combined with the linker option --gc-sections allows the linker to evict unused functions and variables from the final ELF file. On CC, the firmware flash bank is only 118784 bytes in total. This commit reduces the .text segment from 114120 to 83536 and .data from 572 bytes to 560 bytes. That frees up a grand total of 30596 bytes of flash and 12 bytes of RAM. |
||
---|---|---|
.. | ||
board_hw_defs | ||
Bootloaders | ||
CopterControl | ||
Doc | ||
EntireFlash | ||
Libraries | ||
Modules | ||
OpenPilot/System | ||
PiOS | ||
PiOS.posix | ||
PiOS.win32 | ||
PipXtreme | ||
Project | ||
RemoteSystemsTempFiles | ||
Revolution | ||
SimPosix | ||
UAVObjects | ||
UAVTalk | ||
README.txt |
Check the wiki