Massively reduce generated code and RAM size (#137)
Older builds included C++ locale information in RAM/flash as well as a bunch of exception code which can't get called since they're not enabled. Remove them by adjusting final link command and not instantiating them in main.cpp in the first place. Blink went from: > Sketch uses 215604 bytes (10%) of program storage space. Maximum is 2093056 bytes. > Global variables use 18152 bytes (6%) of dynamic memory, leaving 243992 bytes for local variables. Maximum is 262144 bytes. To: > Sketch uses 56112 bytes (5%) of program storage space. Maximum is 1044480 bytes. > Global variables use 12152 bytes (4%) of dynamic memory, leaving 249992 bytes for local variables. Maximum is 262144 bytes. For a savings of **155KB of flash** and **6KB of RAM**
Showing
Please register or sign in to comment