I have built some code for a simulator and am now trying to use TI's free toolchain to cross-compile to a target with 64kb of nvram. The compiler claims that my code is about 34kb beyond the ROM:
(...) msp430-elf/bin/ld: region `ROM' overflowed by 33716 bytes
Another line says it cannot fit the .text
field into its allotted space. I cannot believe that my additions are 34kb in total, let alone causing the binaries to overflow by this amount.
- The .o files my code has added to the project are a small fraction (200kb of the 1.9MB) of the project's total, and I have taken out a great deal of components that were in the project to begin with.
- I am already passing the compiler the
-Os -s
flags. - The new code has about 100 characters worth of string literals.
- My code uses many
math.h
functions (in fact it is the only part that does floating point arithmetic), make a call tostrtod
, and make a call tosprintf
Are there any tools or methods to breaks down what is causing the binaries to be so large?