If you select Single Step mode, the code generated for the Task will not include the do..while structure— this creates a single-step Task. In this case, there is no need for the NeedAnotherStep bit named BITSUPERSTEP_<TASK-NAME>
to be allocated, so all references to it are removed.
There are references to BITSUPERSTEP_<TASK-NAME>
in:
●
|
The do...while of a Task.
|
●
|
In the non-Inline of NeedAnotherStep mode— at the end of the cgDo_ function, there is a check if any nextStep is different than the currentStep. If it is, the BITSUPERSTEP is set.
|
Consider the original code:
The resultant code is as follows: