Designing Your Model: Model-Code Correspondence : Flowcharts : Minimization of Goto Statements

Minimization of Goto Statements

The MicroC Code Generator tries to minimize the number of goto statements in the code. This results in more structured and readable code. However, this is not always possible, and in some cases goto statements may appear in the generated code.

Restructuring the flowchart or using statecharts instead of flowcharts may eliminate generated goto code.