
B–61863E–1/06
G. HINT FOR MAKING LINK CONTROL
STATEMENT, COMMAND FILE
FOR BINDER, BUILD FILE
APPENDIX
533
3) ALLOCATE=(
TASK_CODE= (
GDT,
IDT,
TASK1_CODE,
:
SEG_PMCLIB_CODE
),
TASK_DATA= (
TASK1_DATA,
:
:
)
)
declare code
segment in
this part
declare data
segment in
this part
Specify code segment or data segment.
Write name of code segment between ’(’ and ’)’ of
’TASK_CODE’, and data segment to ’TASK_DATA’.
CAUTION
GDT, IDT must be specified in ’TASK_CODE’.
b. Register the segment of C application to PMC system software.
Set to Link control statement.
1) Set the amount of segment used in C application.
GDT ENTRY COUNT = 6
( 1 64 )
On the main screen of MKC(Link control statement creation
tool), specify the amount of the segment declared in build file in
a.1).
2) Set the data segment entry of all tasks.
DATA SEGMENT GDT ENTRY = 33
( 32 95 )
For each task, on task information definition screen of
MKC(Link control statement creation tool), specify the entry
number of data segment.
Specify the entry number of the segment declared in a.2) as the
entry number.
Example) Setting of GDT in build file as shown below.
TABLE GDT (
RESERVE =
entry = (
:
33:TASK1_DATA,
:
)
);
Specify 33 as the entry number if TASK1_DATA is a
data segment.
DATA SEGMENT GDT ENTRY = 33