Program may be executed from start to finish via a single function call, or step by step.
The single call program executors do not tend to tasks such as temporaries disposal, but some of the functions allow for a method to be called back after each successfully executed instruction. The method would perform the required keeing clean tasks, together with whatever else the application has on agenda.
When executing programs step by step the execution of each instruction takes function call. Such, the application initializes program execution and than for as long as the program execution hasn’t completed and the application so desires, it executes the program instructions.
Each coded expression translates to an executable instruction and control statements add each one or two extra executable instructions.
An alternative step by step execution model allows for actions prompted by program execution to be carried out outside interpreter control.
A transform of the programs is required by second step by step execution model.
The second model step by step program execution makes use of a (step by step) execution context, that has to be created before execution commences. Applications will like to dispose of such context once program execution completes.
|• Step By Step Imperative Program Execution:|