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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>C compiler option: --optimize (-O)Menu entry1. Select C/C++ Compiler » Optimization.2. Select an optimization level in the Optimization level box.Command line syntax--optimize[=flags]-OflagsYou can set the following flags:+/-coalesce+/-ipro+/-cse+/-expression+/-flow+/-glo+/-inline+/-sign+/-schedule+/-loop+/-<strong>for</strong>ward+/-propagate+/-compact+/-subscript+/-unroll+/-peephole+/-clustera/Ab/Bc/Ce/Ef/Fg/Gi/Ij/Jk/Kl/Lo/Op/Pr/Rs/Su/Uy/YCoalescer: remove unnecessary movesInterprocedural register optimizationsCommon subexpression eliminationExpression simplificationControl flow simplificationGeneric assembly code optimizationsAutomatic function inliningSign extend eliminationInstruction schedulerLoop trans<strong>for</strong>mationsForward storeConstant propagationCode compaction (reverse inlining)Subscript strength reductionUnroll small loopsPeephole optimizationsCluster global variablesUse the following options <strong>for</strong> predefined sets of flags:--optimize=0-O0No optimizationAlias <strong>for</strong> -OaBCEFGIJKLOPRSUY,-clusterNo optimizations are per<strong>for</strong>med except <strong>for</strong> the coalescer (to allow better debug in<strong>for</strong>mation).The compilertries to achieve an optimal resemblance between source code and produced code. Expressions areevaluated in the same order as written in the source code, associative and commutative properties arenot used.340

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

Saved successfully!

Ooh no, something went wrong!