
B–66102E/10
D. COMPILE/LINK EXAMPLE
APPENDIX
57
D
COMPILE/LINK EXAMPLE
The compile/link example described below is created under the directory
X:\MCOMP\USR\SAMPL
when the macro compiler utility system is installed.
Details of sample:
Times required for instruction execution by each of the conversational
macros are measured:
1. #100 = #101+#102 ;
2. #100 = #101 AND #102 ;
3. #100 = SIN[#101] ;
The number of test operations is set beforehand in the common variable
(#500). Time required for looping by the number of test operations by the
WHILE instruction is measured by the timer variable (#3001). Then time
required for the same number of loops by the WHILE instruction
containing an instruction subject to measurement is measured. Thus the
difference between two measurement times is the execution time of the
instruction subject to measurement.
(1) Programs created
File name = MAIN.SRC Main source program file
File name = SUB1.SRC Subprogram source file
File name = MAIN.REF Main program reference list file
File name = MAIN.LST Main program compile list file
File name = MAIN.REL Main program object file
File name = SUB1.REF Subprogram reference list file
File name = SUB1.LST Subprogram compile list file
File name = SUB1.REL Subprogram object file
(2) Macro liner
File name = SAMPL.LNK Link control file
File name = SAMPL.MAP Link map list file
File name = SAMPL.ROM ROM-format file