Architecture of Generated C Code : Structure Of The Generated Code : Control Files : The Top Level Module

The Top Level Module

The top-level module identified as <compilation_profile_ name>main.c “wraps” all the behavioral modules into a single behavioral unit. It also defines all the global elements, i.e., those elements used by more than one module. It defines two procedures:

lo_init - Initialization of all the participating modules
lo_main - Execution of a single step of all modules.

The header file exports the global elements, the initialization and the execution procedures. The file name is:

<compilation_profile_name>main.h