Login or Register

Offload™ Library Right Command Line Options

-O[n]

Offload™ Supports Standard GCC Optimization Levels.

This article was updated on 2011-06-03 04:37:10


Offload™ provides the standard GCC optimization levels, namely –O0, –O1, –O2, –O3 & -Os. These optimization levels behave in a similar way to GCC, -O0 turns off optimization, -O1, -O2 & -O3 add more optimizations techniques to achieve performance, and –Os compiles the code with size in mind.

Note that unlike GCC the Offload™ compiler inlines function definitions even on -O0. To explicitly disable inlining performed by the Offload™ compiler the option -fno-inline should be used.