AnsweredAssumed Answered

MQX build sizes

Question asked by D. RY on Dec 29, 2016
Latest reply on Jan 3, 2017 by D. RY

I was checking how much space the MQX builds take, and it seems I get them not so small.

For the simple MQX "hello" example, I get about 34Kbytes binary build.


arm-none-eabi-size  gcc_arm/ram_release/hello_twrvf65gs10_m4.elf
   text       data        bss        dec        hex    filename
  33216       1120        376      34712       8798    gcc_arm/ram_release/hello_twrvf65gs10_m4.elf


This is with GCC-5.4.1, and as you see above this is release build (from folder name). The release build uses the optimized for size compiler options, and removing unused sections by the linker, as I checked from the make output.

(-O2; -gc-sections )


Is this size is what I should expect, or do others get it much smaller?