Hi,
I need to reduce a image size to a minimum. The project is a CANBUS Bootstrap that must fit under 4KB and be written in C.
I'm using MicroLIB, Link-Time Code Generation, -O3, ZI init.
What other compiler/assembler/linker settings could I possibly apply in order to shrink the image?
Thanks.
I spent some more time looking at compiler/linker settings and end up finding compiler --remove_unneeded_entities and linker/compiler --feedback. Those options remove unused sections while still allow me to work with -O0.
The map file looks pretty small from the Compiler/Libraries point of view so not really much to do on settings.
The system setup and mechanism to send/receive CAN messages are generating a 2400 bytes image (-O3). I believe the final app will fit under 4KB...
Thank you.