
4. FUNCTIONS
B–66102E/10
18
(2) Link control file
The link control file specifies a library file name, compile
parameters, and object file names subject to linkage. As with a source
file, a link control file must be created in MS-DOS text file format.
At this time, be sure to assign the file name extension .LNK.
In a link control file, a library file name, compile parameters, and
object file names subject to linkage are defined using keywords. A
comment line can be provided by using /
:.
Keyword)
CNC= : 1st library file name for each CNC model
CNC2= : 2nd library file name for each CNC model
CNC3= : 3rd library file name for each CNC model
P9999= : Compile parameters 9000 to 9059
FILE= : Object file (Multiple object files can be specified with
each name delimited by a comma.)
HFILE= : Intel 32-bit hexadecimal file (Multiple object files can
be specified with each name delimited by a comma.)
SYSTEM= : path–name (Series 16i/18i/21i/15i)
SYSTEM value Specified path
MPATH1 First path of M series
MPATH2 Second path of M series
TPATH1 First path of T series
TPATH2 Second path of T series
LPATH1 First path of loader
Example)
/:
/: MACRO COMPILER UTILITY LINK FILE (SAMPLE)
/
:
/: FOR F16MB
CNC=A:\MCOMP\MEX\F16MB_07.MEX
/
:
P9000=00010000
P9010=100
P9037=5
P9038=8000
/
: JIKKOU-MACRO
FILE=ABC,DEF
FILE=XYZ,UVW
/
: TAIWA-MACRO
FILE=SSS
The example above is for Series 16–MB. The compile parameters (Nos. 9000.
9010, 9037, and 9038) are set, and the object files (ABC.REF. DEF.REL,
XYZ.REL, UVW.REL, and SSS.REL) are linked.
The specification of (=0) is assumed for those compile parameters that are
not specified in the link control file.
A link control file is used also as a selective compile control file by the
macro compiler, as described in item (1) in Section 4.1. This function is
useful in compiling all programs to be linked.
A:\> MCOMP0 @ABS ⇒ compiles all files specified in the link
control file (file name: ABC.LNK).
* MPATH1 is fixed
for series 15i–A
See Appendix
L for details.