Download TASKING VX-toolset for ARM User Guide

Transcript
Tool Options
13.4. Assembler Options
This section lists all assembler options. All options are the same for all three assemblers, asarm (mixed
ARM/Thumb), asarma (ARM only) and asarmt (Thumb only). In the examples we only use asarm.
Options in Eclipse versus options on the command line
Most command line options have an equivalent option in Eclipse but some options are only available on
the command line. Eclipse invokes the assembler via the control program. Therefore, it uses the syntax
of 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 for
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 to
pass the option via the control program directly to the assembler.
Note that the options you enter in the Assembler page are not only used for hand-coded assembly
files, but also for 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. For
example, the option -V displays version header information and has no effect in Eclipse.
Short and long option names
Options 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 option
names as long as it forms a unique name. You can mix short and long option names on the command
line.
Options can have flags or suboptions. To switch a flag 'on', use a lowercase letter or a +longflag. To
switch a flag off, use an uppercase letter or a -longflag. Separate longflags with commas. The following
two invocations are equivalent:
asarm -l -LeM test.src
asarm --list-file --list-format=+symbol,-macro test.src
When you do not specify an option, a default value may become active.
541