
6. EXECUTION FILE CREATION
B–61863E–1/06
APPLICATION
PROGRAMMING GUIDE
414
6
EXECUTION FILE CREATION
An execution file is created from a C source file as described below:
NOTE
For detailed explanations on compiling, binding, and
building, refer to the below manuals.
“iC-86/286 Compiler User’s Guide”
“Intel386 Family Utilities User’s Guide”
“Intel386 Family System Builder User’s Guide”
(1) The C source file is compiled.
[Compile format]
IC286 TASK1.C PR(TASK1.LIS) COMPACT EXTEND ROM
TASK1.C : C source file name
PRINT(PR) : Specification of compile listing output file name
COMPACT(CP) : The compact model is specified for segment
memory. (DS and SS are separate.) The default
is all near-types with only data pointers set as
far-types (selector + offset). When /COMPACT,
the code segment name is “CODE” and the data
segment name is “DATA”.
EXTEND(EX) : Expansion of the IC286 compiler (far format etc.
can be used).
ROM : The constant is taken by the code segment. If it
is not attached, the constant is taken by the data
segment and the value will be undefined at the
time of execution.
CAUTION
1 COMPACT, EXTEND, and ROM must be specified.
(The abbreviated form is indicated in parentheses.)
2 The prototype declaration of the PMC library function is in
the PMCLIB.H include file. When the prototype declaration
is not used, the NARGS symbol must be defined with
#define in the source program or compile option.
<Example using the compile option>
IC286 TASK1.C PR(TASK1.LIS) COMPACT EXTEND
ROM DEFINE(NARGS)
3 When it is necessary to find a program break address with
the debug function (described later), specify ”CODE” to
output a machine code listing.
IC286 TASK1.C PR(TASK1.LIS) COMPACT EXTEND
ROM CODE