本页面提供的是上一版软件的文档。当前版本中已删除对应的英文页面。
编程语言
为生成的代码更改编程语言
当您选择代码生成语言(例如 C 或 C++)时,您的选择将决定所生成代码的许多功能,并确定哪些功能在配置参数对话框中可用。为您的模型配置代码生成时,语言选择是第二个要设置的配置参数。
主题
- Select C or C++ Programming Language
Choose C or C++ as the programming language for code generation.
- 编译从 Simulink 模型生成的代码的方法
选择 CMake、工具链或模板联编文件方法来编译生成的代码。
- Select and Configure C or C++ Compiler
Consider programming language compliance for generated code and select a compiler for the build process.
疑难解答
Identify and fix issues that prevent compiler operation in the build process.