
B–61863E–1/06
6. EXECUTION FILE CREATION
APPLICATION
PROGRAMMING GUIDE
415
(2) Binding each task
Binding is performed several times for each task. Because all
functions in the C286 standard library are near-type, it must be bound
to each task.
[Bind format]
BND386 &<TASK1.CON
TASK1.CON : Bind control file
[Contents]
CTL.OBJ,&
TASK1.OBJ,&
CLIB2C.LIB &
OJ (TASK1.LNK) NOLO NOPL EC (smpl_tsk1) &
PR (TASK1.MP1) NAME (TASK1) SS (STACK(0)) &
RN(CODE TO TASK1_CODE,DATA TO TASK1_DATA)
CTL.OBJ,TASK1.OBJ: Compile object file
CLIB2C.LIB : C286 standard library
OBJECT(OJ) : Specifies the bind output file name.
NOLOAD(NOLO) : Outputs files which can be rebound.
NOPUBLICS(NOPL) : Prevents other tasks and symbols from
conflicting.
EXCEPT(EC) : Only outputs symbols of the task entry
functions.
PRINT(PR) : Specifies the name of the output listing file
for bind results.
NAME(NA) : Module name
SEGSIZE(SS) : Sets the stack size to 0.
RENAMESEG(RN) : Specifies a unique segment name for each
task. Make sure to change data segment
names.
When the FANUC library (PMC2.LIB PMC3.LIB library functions
in 3.2) is used with the standard C library, bind PMC2.LIB
PMC3.LIB before binding CLIB2C.LIB.
TCB.OBJ,&
TASK1.OBJ,&
PMC2.LIB, &
PMC3.LIB, &
CLIB2C.LIB, &
OJ(TASK1.LNK) NOLO NOPL EC(smpl_tsk1) &
PR(TASK1.MP1) NAME(TASK1) SS(STACK(0)) &
RN(CODE TO TASK1_CODE,DATA TO TASK1_DATA)
*
*
(3) Common memory is bound as shown below.
[Bind format]
BND386 &<COMDAT.CON
COMDAT.CON: Bind control file
[Contents]
COMDAT.OBJ &
OJ(COMDAT.LNK) NOLO PL &
PR(COMDAT.MP1) NAME(COMDAT) &
RN(DATA TO COM_DATA)
PUBLICS(PL) : Outputs symbols.