Architecture of Generated C Code : Structure Of The Generated Code : Structure of the Output Source Files

Structure of the Output Source Files

The generated files can be partitioned into six categories:

Control Modules - These files carry the model’s logic and scheduling and are the most significant part of the model.
Modules for Subroutines Defined in Model - For each subroutine, a separate file is generated.
User Supplemented Code (templates) - These files contain hooks and frames used to interface the behavioral model with the environment or any other user-supplemented modules. As opposed to subroutines, this code is not stored in the model.
Interface Modules - Interface code for panels and the Debugger.
Makefiles and Compilation Scripts - These are scripts used to automate the process of building an application (compile & link) from the source files.
The Info File - Contains cross reference information.