最新のリリースでは、このページがまだ翻訳されていません。 このページの最新版は英語でご覧になれます。
コメント スタイル、データ型のキャスト モード、インデント スタイルなど、コードの外観とスタイルの特性を制御するコンフィギュレーション パラメーターを変更します。コードの外観とスタイルを制御するパラメーターの詳細については、MATLAB コードからのコード生成のための Embedded Coder 機能を参照してください。
コード生成テンプレート (CGT) ファイルをカスタマイズして、コード セクションの前にカスタム バナー、トレーラーおよびコメントを生成します。Generate Custom File and Function Banners for C/C++ Codeを参照してください。
coder.setupMISRAConfig | パラメーターを設定して、MISRA C および C++ ガイドラインへの生成コードの準拠性を高める |
coder.MATLABCodeTemplate | Represent code generation template for MATLAB Coder |
Specify Comment Style for C/C++ Code
Generate single-line or multiline comments in C/C++ code generated from MATLAB® code.
Customize Generated Identifiers
Specify format of identifiers in C/C++ code generated from MATLAB code.
Customize C/C++ File Names Generated from MATLAB Code
Specify format of C/C++ file names generated from MATLAB code.
MATLAB コードから生成される C/C++ コードの if-elseif-else
ステートメントの代わりに、switch-case
ステートメントを生成します。
Specify Indent Style for C/C++ Code
Use K&R or Allman indent style in C/C++ code generated from MATLAB code.
Control Signed Left Shifts in Generated Code
Control whether the code generator replaces multiplications by powers of two with signed, left bitwise shifts in code generated from MATLAB code.
Control Data Type Casts in Generated Code
Specify the data type casting mode, that is, default mode, standards compliant mode, or explicit mode, in C/C++ code generated from MATLAB code.
Generate C/C++ Code with Improved MISRA Compliance
Configure code generation parameters to increase the MISRA® C and C++ compliance of the generated code.
Customize Data Type Replacement
Specify custom data type names in C/C++ code generated from MATLAB code.
Import Custom Data Type Definitions from External Header Files
Specify header file names, which contain custom type definitions, that you want to import.
Code Generation Template Files for MATLAB Code
A CGT file specifies file and function banners, and comments before code sections in C/C++ code generated from MATLAB code.
Generate Custom File and Function Banners for C/C++ Code
Customize a CGT file to generate your own file and function banners in C/C++ code generated from MATLAB code.
MATLAB Code Patterns That Require a Nonempty Initialize Function in Generated Code
Code generation fails when you choose not to include the initialize function, even though the custom code for the generated initialize function is empty.