
B–62093E–1/02
2. MACRO COMPILER AND
MACRO EXECUTOR
PROGRAMMING
27
A created macro source program is compiled by the macro compile
command Mcomp0.
Command format: n:>MCOMP0 <filename> <parameters>
The table below lists the compile options specifiable in <parameters>.
–NR Does not output an object file (*.REL).
–L1 Does not output a compile list file (*.LST).
–L2 Does not output a reference list file (*.REF).
–L3 Outputs a macro program file after symbol conversion processing (*.PRG).
–PR Does not make a symbolic analysis.
Upon completion of compilation, a compile list file (*.LST) and reference
list file (*.REF) are created.
If an error occurs during compilation, the details of the error can be
checked by opening the compile list file (*.LST).
If the message “Macro Compiler Normal End” is displayed on the screen,
the compilation has been terminated normally.
Object files created by compilation are linked by the macro link command
Mlink to create a ROM format file.
Command format: n:>MLINK <filename> <parameters>
In <filename>, specify a link control file (*.LNK). The extension.
(LNK) of a link control file can be omitted.
A link control file (*.LNK) is created according to the procedure below
((1) to (4)).
(1) CNC=(library name)
Specify the file name of a library to be linked with.
(2) SYSTEM=(path)
Specify a path of the system. When the Power Mate i–D or Power
Mate i–H is used, be sure to specify SYSTEM=MPATH1.
When the Power Mate–D, Power Mate–D (two–path control), and
Power Mate–H are used, this step need not be specified.
(3) P (parameter No.)=(setting)
Specify compile parameters.
(4) FILE=(object file name)
Specify all object file names to be linked.
2.2.2
Compile (Mcomp0)
2.2.3
Link (Mlink)