Download Manual - Digi-Key

Transcript
Assembler Options
Macro Assembler
where the assembler is being called directly, or when they are specified using the command-line
driver option --SETOPTION, see Section 2.4.47.
The usage of the assembler is similar under all of available operating systems. All command-line
options are recognised in either upper or lower case. The basic command format is shown:
ASDSPIC [ options ] files
files is a space-separated list of one or more assembler source files. Where more than one source
file is specified the assembler treats them as a single module, i.e. a single assembly will be performed
on the concatenation of all the source files specified. The files must be specified in full, no default
extensions or suffixes are assumed.
options is an optional space-separated list of assembler options, each with a minus sign - as
the first character. A full list of possible options is given in Table 4.1, and a full description of each
option follows.
Table 4.1: ASDSPIC command-line options
Meaning
Default
-A
Produce assembler output
Produce object code
-C
Produce cross-reference file
No cross reference
-Cchipinfo
Define the chipinfo file
dat\dspicc.ini
-E[file|digit] Set error destination/format
-Flength
Specify listing form length
66
-H
Output hex values for constants Decimal values
-I
List macro expansions
Don’t list macros
-L[listfile]
Produce listing
No listing
-O
Perform optimization
No optimization
-Ooutfile
Specify object name
srcfile.obj
-Pprocessor
Define the processor
-R
Specify non-standard ROM
-Twidth
Specify listing page width
80
-V
Produce line number info
No line numbers
-Wlevel
Set warning level threshold
0
-X
No local symbols in OBJ file
Option
4.2
Assembler Options
The command line options recognised by the assembler are as follows:
90