|Non-Confidential||PDF version||ARM DUI0472M|
|Home > Getting Started with the Compiler > Compilation build time > Minimizing compilation build time|
There are a number of actions you can take to minimize how long the compiler takes to compile your source code.
These actions include:
-O3gives maximum optimization in the code that is generated, but can result in longer build times to achieve such results.
restrictkeyword if you can safely do so, to avoid the compiler having to do compile-time checks for pointer aliasing.
Consider using or avoiding
--multifile compilation, depending on the
resulting build time.
--multifileis enabled by default.
--multifileis disabled by default, regardless of the optimization level.