编程语言
为生成的代码更改编程语言
当您选择代码生成语言(例如 C 或 C++)时,您的选择将决定所生成代码的许多功能,并确定哪些功能在 Configuration Parameters 对话框中可用。为您的模型配置代码生成时,语言选择是第二个要设置的配置参数。
主题
- Select C or C++ Programming Language
Choose C or C++ as the programming language for code generation.
- Approaches for Building Code Generated from Simulink Models
Choose CMake, toolchain, or template makefile approach for building generated code.
- 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.