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.4. Assembler OptionsThis section lists all assembler options. All options are the same <strong>for</strong> all three assemblers, asarm (mixed<strong>ARM</strong>/Thumb), asarma (<strong>ARM</strong> only) and asarmt (Thumb only). In the examples we only use asarm.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 assembler via the control program. There<strong>for</strong>e, it uses the syntaxof the control program to pass options and files to the assembler. If there is no equivalent option in Eclipse,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 Assembler » Miscellaneous.4. In the Additional options field, enter one or more command line options.Because Eclipse uses the control program, Eclipse automatically precedes the option with -Wa topass the option via the control program directly to the assembler.Note that the options you enter in the Assembler page are not only used <strong>for</strong> hand-coded assemblyfiles, but also <strong>for</strong> the assembly files generated by the compiler.Be aware that some command line options are not useful in Eclipse or just do not have any effect. Forexample, the option -V displays version header in<strong>for</strong>mation and has no effect in Eclipse.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.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:asarm -l -LeM test.srcasarm --list-file --list-<strong>for</strong>mat=+symbol,-macro test.srcWhen you do not specify an option, a default value may become active.491

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

Saved successfully!

Ooh no, something went wrong!