To comply with code standards and guidelines, integrate generated code with external code, and address memory requirements, you can control the declarations and definitions of functions, variables, and data types in generated code. For example, you can configure code generation for:
Data elements by associating the elements with storage classes
Reusable entry-point functions by setting model configuration parameters
C++ class interfaces by setting model configuration parameters
Choose a storage class to apply to data elements in a model, such as signals, states, and block parameters.
Control data representation in the generated code by applying storage classes directly, which overrides the default storage classes that you specify in the Code Mapping Editor.
Customize the implementation of parameter arguments in generated code.
Execute code generated from single-tasking and multitasking models for rapid-prototyping and embedded system run-time environments.
Learn about generated entry-point functions and ways to control their interfaces and whether the functions are reusable and reside in specific areas of memory.
Generate rapid prototyping code.
Generate reusable, reentrant code from top models.
Generate a C++ class interface to code generated from a model or subsystem.