13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>C compiler option: --inline-max-incr / --inline-max-sizeMenu entry1. Select C/C++ Compiler » Optimization.2. In the Maximum size increment when inlining field, enter a value (default -1).3. In the Maximum size <strong>for</strong> functions to always inline field, enter a value (default -1).Command line syntax--inline-max-incr=percentage (default: -1)--inline-max-size=threshold (default: -1)DescriptionWith these options you can control the automatic function inlining optimization process of the compiler.These options have only effect when you have enabled the inlining optimization (option --optimize=+inlineor Optimize most).Regardless of the optimization process, the compiler always inlines all functions that have thefunction qualifier inline.With the option --inline-max-size you can specify the maximum size of functions that the compiler inlinesas part of the optimization process. The compiler always inlines all functions that are smaller than thespecified threshold. The threshold is measured in compiler internal units and the compiler uses thismeasure to decide which functions are small enough to inline. The default threshold is -1, which meansthat the threshold depends on the option --tradeoff.After the compiler has inlined all functions that have the function qualifier inline and all functions thatare smaller than the specified threshold, the compiler looks whether it can inline more functions withoutincreasing the code size too much. With the option --inline-max-incr you can specify how much the codesize is allowed to increase. The default value is -1, which means that the value depends on the option--tradeoff.Examplecarm --inline-max-incr=40 --inline-max-size=15 test.cThe compiler first inlines all functions with the function qualifier inline and all functions that are smallerthan the specified threshold of 15. If the code size has still not increased with 40%, the compiler decideswhich other functions it can inline.Related in<strong>for</strong>mationC compiler option --optimize=+inline (Optimization: automatic function inlining)Section 1.10.2, Inlining Functions: inline322

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!