Download MN10300 Series Cross-Assembler User`s Manual

Transcript
Chapter 3
Introduction To Operation
■ Parameter file during linking
The following command was input to link.
ld103 -m -g -T_CODE_00=80000000 -T_CODE_01=80005000 program3.rf program4.rf
Repeated input of lines like this is tedious and prone to errors. For this reason the very
convenient @ option is provided with the linker. With an editor create a file pfile (the
name can be freely chosen) with the following contents.
The contents of pfile are as follows.
-m
-g
-T_CODE_00=80000000
-T_CODE_01=80005000
program3.rf program4.rf
This file is called a parameter file. If the @ option is specified when linking, then the
linker will read a parameter file, and will interpret its contents as command options for
execution.
The two specifications below will be equivalent.
ld103 @pfile
ld103 -m -g -T_CODE_00=80000000 -T_CODE_01=80005000 program3.rf program4.rf
Assembling And Linking Multiple Sections
41