Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 85 -
For the single task application, you should only define the macro TASK1.
TASK1 = S1.OBJ S2.OBJ
TASK2 =
TASK3 =
For the multi task application, you should define all the three macros TASK1,
TASK2 and TASK3.
TASK1 = S1.OBJ S2.OBJ
TASK2 = X.OBJ
TASK3 = Y1.OBJ Y2.OBJ Y3.OBJ
Even only two tasks are necessary, you must define the three tasks. And the
unnecessary task must infinitely do event wait. (Refer to the sample appli-
cation program "POS.EXE" for more information)
Define the macro DEBUG to specify the task ID which you want to do the
symbolic debugging. If you need not to activate the debugger, assign zero
to the macro DEBUG.
Each task uses the same public symbol names (i.e. main). To avoid the
collision of the public symbol name, the public symbols of the other task
specified by the macro DEBUG are deleted when linking. Therefore, you can
execute symbolic debugging only one task simultaneously.
(NOTE) Debugging function is not available yet now.
(2) Dependency block
#------------------------------------------------------------------------------
# .OBJ and .C dependency block.
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
# End of .OBJ and .C dependency block.
#------------------------------------------------------------------------------
The relations between the object file, the source file and the include file
are described here.
If S1.C includes ABC.H, and S2.C includes DEF.H, describe them as follows.
#------------------------------------------------------------------------------
# .OBJ and .C dependency block.
#------------------------------------------------------------------------------
S1.OBJ : S1.C ABC.H
S2.OBJ : S2.C DEF.H
#------------------------------------------------------------------------------
# End of .OBJ and .C dependency block.
#------------------------------------------------------------------------------