Using the Compiler Optimizer Flags
Explore how to apply GCC compiler optimizer flags to enhance the performance of your C programs. Understand the trade-offs involved, including debugging challenges and changes in code execution flow, to write more efficient code.
We'll cover the following...
We'll cover the following...
There are a number of levels of ‘optimization’ that we can request from the gcc compiler at compile time. Turning on the optimizer flags asks the compiler to attempt to improve the performance (speed) of the code, typically at the expense of compilation time, sometimes code size, and (usually) ...