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.

Tool Options12.3. C++ Compiler OptionsThis section lists all C++ compiler options.Options in Eclipse versus options on the command lineMost command line options have an equivalent option in Eclipse but some options are only available onthe command line. Eclipse invokes the C++ compiler via the control program.There<strong>for</strong>e, it uses the syntaxof the control program to pass options and files to the C++ compiler. If there is no equivalent option inEclipse, you can specify a command line option in Eclipse as follows:1. From the Project menu, select Properties <strong>for</strong>The Properties dialog appears.2. In the left pane, expand C/C++ Build and select Settings.In the right pane the Settings appear.3. On the Tool Settings tab, select C/C++ Compiler » Miscellaneous.4. In the Additional options field, enter one or more command line options.Because Eclipse uses the control program, you have to precede the option with -Wcp to pass theoption via the control program directly to the C++ compiler.Short and long option namesOptions can have both short and long names. Short option names always begin with a single minus (-)character, long option names always begin with two minus (--) characters.You can abbreviate long optionnames as long as it <strong>for</strong>ms a unique name. You can mix short and long option names on the commandline.If an option requires an argument, the argument may be separated from the keyword by white space, orthe keyword may be immediately followed by =option. When the second <strong>for</strong>m is used there may not beany white space on either side of the equal sign.Options can have flags or suboptions. To switch a flag 'on', use a lowercase letter or a +longflag. Toswitch a flag off, use an uppercase letter or a -longflag. Separate longflags with commas. The followingtwo invocations are equivalent:cparm -Ecp test.cccparm --preprocess=+comments,+noline test.ccWhen you do not specify an option, a default value may become active.The priority of the options is left-to-right: when two options conflict, the first (most left) one takes effect.The -D and -U options are not considered conflicting options, so they are processed left-to-right <strong>for</strong> eachsource file. You can overrule the default output file name with the --output-file option.365

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

Saved successfully!

Ooh no, something went wrong!