C Compiler
The GNU C compiler has several switches that enable you to choose how it optimizes the object code it produces. Optimization in this context refers to both the process of reducing the count of processor instructions, and ordering them correctly so that a given piece of executable code will run as quickly as possible. It’s not possible to optimize for both minimum size and maximum speed at the same time.
Compiler Options
When you generate executables for powerful general-purpose computers with lots of memory and disk space, it’s usually best to maximize execution speed at the expense of code size. Sometimes it’s nice to have debugging information, too. However, when you’re building an executable for an embedded application with little ...
Get Embedded Linux now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.