
4. FUNCTIONS
B–66102E/10
14
(1) Operation
The macro compiler can compile macro programs created in the
MS-DOS text file format. The macro compiler outputs an object file
for the macro linker, reference list file, and compile list file.
*1 *2
A:\> MCOMP0 file-spec [parameters]
==>
(For Series 0/16/18/20/21)
A:\> MCOMP15 file-spec [parameters]
==>
(For Series 15–A/B)
A:\> MCOMP15I file-spec [parameters]
==>
(For Series 15i–A)
Source File Object File
Macro
Program
(xx.SRC)
MCOMP0
MCOMP15
MCOMP15I
Object
Program
(xx.REL)
Reference List File(xx.REF)
Compile List File (xx.LST)
MACRO COMPILER
1 O0001;
2 #100=#101+10;
*1 file-spec
This specifies a macro program source file. The extension of a
source file name must be .SRC. Source files to be compiled can
be specified in three ways:
(1) Compilation of a single file
A:\> MCOMP0 ABC=> Compiles ABC.SRC.
(2) Compilation of multiple cards by using a wild card
A:\> MCOMP0 ABC*=>
Compiles all files whose names start with ABC and have the
extension .SRC,
(3) Selective compilation according to link control file
specification
A:\> MCOMP0 @ABC=>
Compiles all files specified in the link control file (file name:
ABC.LNK).
CAUTION
As described in Section 3.4, even if the same macro
program is compiled, the macro compiler for Series
0/16/18/20/21 creates an object file different from an object
file created by the macro compiler for Series 15 and Series
15i. Select the compiler that matches a development
model.
4.1
MACRO COMPILER
(MCOMP0/MCOMP15/
MCOMP15i)