Download FactoryLink ECS Core Tasks Configuration Guide

Transcript
COMPILED MATH AND LOGIC
Generation of CML Executables
test.prg\n”
(276)T_WHILE
:00000000
(320)T_LVAR
:LLOCVAR
(290)T_INT
:00000003
(259)T_LE
:00000000
(277)T_BEGIN
:00000000
(311)T_DOT
:WHILE llocvar <=3
(318)T_PRINT
:00000000
(293)T_STRING
:”INSIDE THE WHILE LOOP\n”
(311)T_DOT
:PRINT “INSIDE THE WHILE LOOP\n”
(260)T_EQ
:llocvar
(320)T_LVAR
:llocvar
(290)T_INT
:00000001
(269)T_ADD
:00000000
(311)T_DOT
:llocvar = llocvar + 1
(278)T_END
:00000000
(311)T_DOT
:WEND
(365)T_CCODE
:printf(“FactoryLink is the Best\n”);
(365)T_CCODE
:for(i = INITVAL; I<=UPBOUND; i+=INCREMENT) {
:/*i,INITVAL, UPBOUND, INCREMENT, are defined
and declared in test.h
(365)T_CCODE
:Body of for loop..., must be careful of
referencing
(365)T_CCODE
:factorylink tags in CBEGIN ...CEND, block,
must assign the tag to a local
(365)T_CCODE
:outside of block and then process the local
and then assign value back
(365)T_CCODE
:to tag outside of the CBEGIN ... CEND bloc.
FactoryLink ECS / Core Tasks Configuration Guide / 261
10
Math and Logic
(365)T_CCODE