
B–61863E–1/06
G. HINT FOR MAKING LINK CONTROL
STATEMENT, COMMAND FILE
FOR BINDER, BUILD FILE
APPENDIX
537
D TASK COUNT (Link control statement)
On the main screen of MKC(Link control statement creation tool),
specify amount of the C application task(except the 3rd level of
LADDER).
D ENTRY ADDRESS NAME (Link control statement)
ENTRY ADDRESS NAME = smpl_tsk1
On the task information definition screen of MKC(Link control
statement creation tool), specify name of the task entry function(main
function of the task).
This is a pointer to the function, so please remove ’()’ after the function
name.
Please specify the correct name.
CAUTION
Please declare the entry function with far qualifier in the
source file (*.c).
Please make the entry function public on binding.
(specify the option “NOPL EC (entry function)” or “PL”)
D STACK SIZE(Link control statement)
On the task information definition screen of MKC (Link control
statement creation tool), specify amount of the stack used by a task.
Please refer the Appendix B for getting the size of stack.
D TASK NAME (Link control statement)
Specify the name of task which is displayed on USRDGN screen
(PMCDGN).
Max. 8 character of upper–case alphabet and number are available.
D Setting of command file for binder
Example)
CTL.OBJ, &
TASK1.OBJ, &
PMC2.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)
D When description continues to the next line in command file for
binder,
put ’&’ to the last of the line.
D Please put ’,’ as delimiter if there are several files to bind. ’,’
following the last file is not needed.
D Please bind PMC2.LIB and CLIB2C.LIB for each task.
Please specify PMC2.LIB before CLIB2C.LIB to the file.
Please bind PMC.LIB at entire binding.
D Stack size must be specified to 0 (Specify “SS (STACK (0) )”).
(Because PMC system software allocates the stack by the setting
of link control statement)
G.6
SETTING OF THE
OTHERS