
G. HINT FOR MAKING LINK CONTROL
STATEMENT, COMMAND FILE
FOR BINDER, BUILD FILE
B–61863E–1/06
APPENDIX
530
This section describes the meaning of terms which is used in following
section.
Link control statement
This is a file to register the C language application to PMC system
software.
Please use MKC(Link control creation tool) to create it.
In sample program of PMC library, CTL.C is the Link control
statement.
Command file for binder
When object files or libraries are binding, this file specify the binder
option and filename to bind, et al.
Please use text editor to create it.
In sample program of PMC library, *.con are the command file for
binder.
Build file
This file has the information of segment for builder.
Please use text editor to create it.
In sample program of PMC library, SMPL.BLD is the build file.
These 3 files have relation with each other, if a file is modified, others
must change. After next section, the way of modification is explained by
the part which has relation on the 3 files.
Segment
Segment is an independent address spaces on ’INTEL’ processor.
There are code segment, data segment and stack on memory which
are used by application. Each task has these memory on multi–tasking
system.
The data which use these memories are shown below.
Code segment : Instructions of the source file constant data
Data segment : static variables
Stack : auto variables argument, return address of the
function when the function is called
Descriptor
Descriptor is a data structure which define a segment.
Descriptor has the information of segment as Base (location of a
segment on physical address spaces), Limit (size of a segment), Type
(segment type id code/data, write enable/disable, et al) et al.
GDT
Global Descriptor Table.
GDT is an array of segment descriptors for all tasks.
Entry is an element number of this array.
Exception
Exceptions occur when instructions are executed which provoke
exceptions.
Vector is an identifying number which shows exception type.
at debugging are shown below.
0:Divide error (Divide by 0)
12:stack fault (overflow/underflow of stack)
13:general protection (protection violation like exceeding the
segment limit)
G.1
EXPLANATION OF
TECHNICAL TERM