
4.FUNCTIONS B-66264EN/01
- 18 -
Sample link control file
/*
/* MACRO COMPILER UTILITY LINK FILE (SAMPLE)
/*
/* FOR F30I-A
CNC=\MCOMP30I\MEX\F30iA_01.MEX
P-CODE_NUMBER=01
/* Compile Parameter
P9000=00010000 /* P-CODE Size 1MB
P9010=100 /* M-Code Sub call O9001
P9038=8000 /* Conversational Macro program
/* Execution-Macro program
FILE=FRANGE_MAIN,FRANGE_SUB1,FRANGE_SUB2,FRANGE_SUB3
FILE=SHAFT1,SHAFT2
/* Conversational- Macro program
FILE=SCREEN
The example above is for P-CODE file 1. The compile parameters
(Nos. 9000, 9010, and 9038) are set and the object files
(FRANGE_MAIN.REL, FRANGE_SUB1.REL,
FRANGE_SUB2.REL, FRANGE_SUB3.REL, SHAFT1.REL,
SHAFT2.REL, and SCREEN.REL) are linked.
The specification of 0 is assumed for those compile parameters that
are not specified in the link control file.
Link list file
The link list file is output by the linker, and a library name, compile
parameters, compile program list and size information, erroneous
program numbers, error codes, ROM-format file size information and
so forth are listed.
The name of a link list file is the same as the link control file name,
except that the extension .MAP is assigned to the link list file name.
Specifying the destinations to which the macro linker outputs files
The directory of the destinations to which the macro linker outputs
files can be specified as desired according to linking conditions.
-Fm : Specifies a destination to which a link list file is output.
-Fr : Specifies a destination to which a ROM-format file is output.
Example
Assume that the object file is stored in C:\MCOMP30I\TEST.
Executing
C:\MCOMP30I\TEST >MLINK30I SAMPL –FmMAP –FrD:\MCOMP\LNK
generates SAMPL.MAP in C:\MCOMP30I\TEST \MAP and
SAMPL.ROM in D:\MCOMP\LNK.