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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access