Search code examples
cgccvxworks

What are the Compiler Options & Other mechanism for reducing the static library size?


What are the Compiler Options & Other mechanism for reducing the static library size?

OS : VxWorks Compiler : GCC Language : C


Solution

  • Use -Os to optimise for smaller code size, and leave out -g and any other debug options.