Flowchart Implementation : Flowchart Implementation

Flowchart Implementation

The Flowchart Language in MicroC graphically describes a Structured C Program. It is used as an alternative approach to the Rational Statemate Language emphasis on Statecharts to describe control activity logic.

The graphics and semantics used in Flowcharts are very much different from what is used in Statecharts. This gives the designer the option to choose the language that is best suited to a specific algorithm implementation.

The code of a Flowchart runs from beginning to end, without stopping and without explicitly maintaining its internal state. Each time the Flowchart is run, it must start from the beginning. The Flowchart does not have a notion of State or Internal State.

While Flowcharts allows the creation of highly visible, graphical algorithms, there is no inherent overhead in the generated code. The code generator is able to generate optimized structured code from a flowchart just as readily as from a statechart.

The use of flowcharts is recommended where ever clear and visible (graphical) algorithms are desired, while preserving maximum performance.

If a Flowchart is properly constructed, it will result in the generation of highly optimized structured code. However, it is the responsibility of the designer to build appropriate charts with proper syntax, logic, and association with a valid control activity. Otherwise, the results could be non-structured code.