Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

子系统

生成和重用子系统的代码

设计并配置模型,以控制代码生成器为其子系统生成的代码。有关详细信息,请参阅Control Generation of Functions for Subsystems

主题

子系统和代码生成

Control Generation of Functions for Subsystems

Control whether the code generator stores the generated functions in memory sections.

Generate Code and Executables for Individual Subsystems

Generate and build a standalone executable from a subsystem.

Generate Subsystem Code as Separate Function and Files

Configure subsystems to generate functions in separate files and specify the names of those functions and files.

Code Generation of Constant Parameters

Generate constant parameters to the shared utilities folder or top model.

Modeling Guidelines for Subsystems

Develop models and generate code for subsystems by using the modeling guideline recommendations.

代码优化

Optimize Code for Identical Nested Subsystems

Optimize code to inline nested subsystems.