The code that you generate from a model contains functions and variables that correspond to the systems, signals, and blocks in the model diagram. To comply with code standards and guidelines, ease the integration of generated code with your own code, and to reduce the consumption of computing resources such as RAM and CPU throughput, you can control the declarations and definitions of functions, variables, and data types. You can specify:
Placement in generated or imported files
Data types, including custom data type names and structures
The generated code contains multiple generated entry-point functions that allow you to:
Schedule different rates of model execution on your target hardware.
Generate modular code that contains reusable reentrant functions.