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: --cpu (-C)Menu entry1. Expand C/C++ Build and select Processor.2. From the Processor Selection list, make a selection by Architecture, Core or one of themanufacturers.Command line syntax--cpu=architecture-CarchitectureYou can specify the following architectures:<strong>ARM</strong>v6M<strong>ARM</strong>v7M<strong>ARM</strong>v7EM<strong>ARM</strong>v7RCompile <strong>for</strong> <strong>ARM</strong>v6-M architectureCompile <strong>for</strong> <strong>ARM</strong>v7-M architectureCompile <strong>for</strong> <strong>ARM</strong>v7E-M architectureCompile <strong>for</strong> <strong>ARM</strong>v7-R architectureDescriptionWith this option you specify the <strong>ARM</strong> architecture <strong>for</strong> which you create your application. The <strong>ARM</strong> targetsupports more than one architecture and there<strong>for</strong>e you need to specify <strong>for</strong> which architecture the compilershould compile. The architecture determines which instructions are valid and which are not.The effect of this option is that the C++ compiler uses the appropriate instruction set. You choose one ofthe following architectures: <strong>ARM</strong>v6-M, <strong>ARM</strong>v7-M, <strong>ARM</strong>v7E-M or <strong>ARM</strong>v7-R.The macro __CPU__ is set to the name of the architecture.ExampleTo compile the file test.cc <strong>for</strong> the <strong>ARM</strong>v7E-M architecture, enter the following on the command line:cparm --cpu=<strong>ARM</strong>v7EM test.ccRelated in<strong>for</strong>mationC compiler option --cpu (Select architecture)378

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

Saved successfully!

Ooh no, something went wrong!