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: --compact-max-sizeMenu entry1. Select C/C++ Compiler » Optimization.2. In the Maximum size <strong>for</strong> code compaction field, enter the maximum size of a match.Command line syntax--compact-max-size=valueDefault: 200DescriptionThis option is related to the compiler optimization --optimize=+compact (Code compaction or reverseinlining). Code compaction is the opposite of inlining functions: large sequences of code that occur morethan once, are trans<strong>for</strong>med into a function. This reduces code size (possibly at the cost of executionspeed).However, in the process of finding sequences of matching instructions, compile time and compiler memoryusage increase quadratically with the number of instructions considered <strong>for</strong> code compaction. With thisoption you tell the compiler to limit the number of matching instructions it considers <strong>for</strong> code compaction.ExampleTo limit the maximum number of instructions in functions that the compiler generates during codecompaction:carm --optimize=+compact --compact-max-size=100 test.cRelated in<strong>for</strong>mationC compiler option --optimize=+compact (Optimization: code compaction)C compiler option --max-call-depth (Maximum call depth <strong>for</strong> code compaction)304

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

Saved successfully!

Ooh no, something went wrong!