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: --tradeoff (-t)Menu entry1. Select C/C++ Compiler » Optimization.2. Select a trade-off level in the Trade-off between speed and size box.Command line syntax--tradeoff={0|1|2|3|4}-t{0|1|2|3|4}Default: --tradeoff=4DescriptionIf the compiler uses certain optimizations (option --optimize), you can use this option to specify whetherthe used optimizations should optimize <strong>for</strong> more speed (regardless of code size) or <strong>for</strong> smaller code size(regardless of speed).By default the compiler optimizes <strong>for</strong> code size (--tradeoff=4).If you have not specified the option --optimize, the compiler uses the default Optimize moreoptimization. In this case it is still useful to specify a trade-off level.ExampleTo set the trade-off level <strong>for</strong> the used optimizations:carm --tradeoff=2 --thumb test.cThe compiler uses the default Optimize more optimization level and optimizes <strong>for</strong> code size.Related in<strong>for</strong>mationC compiler option --optimize (Specify optimization level)Section 4.5.3, Optimize <strong>for</strong> Size or Speed358

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

Saved successfully!

Ooh no, something went wrong!