O'Reilly logo

Embedded Linux by John Lombardo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required