创建加速可执行文件
编译代码的创建和功能
函数
fiaccel | Accelerate fixed-point code or convert floating-point MATLAB code to fixed-point MATLAB code |
coder.allowpcode | 从 P 代码文件控制代码生成 |
coder.areUnboundedVariableSizedArraysSupported | Check if current configuration settings allow unbounded variable-size arrays (自 R2024a 起) |
coder.const | 在生成的代码中将表达式折叠为常量 |
coder.extrinsic | 将函数声明为外部函数,并在 MATLAB 中执行它 |
coder.inline | 控制生成代码中当前函数的内联 |
coder.inlineCall | Inline called function in generated code (自 R2024a 起) |
coder.load | 从 MAT 文件或 ASCII 文件加载编译时常量 |
coder.newtype | Create coder.Type object to represent type of an entry-point
function input |
coder.nonInlineCall | Prevent inlining of called function in generated code (自 R2024a 起) |
coder.nullcopy | 在代码生成中声明未初始化的变量 |
coder.resize | 调整 coder.Type 对象的大小 |
coder.target | 确定代码生成目标是否为指定的目标 |
coder.typeof | Create coder.Type object to represent the type
of an entry-point function input |
coder.unroll | 通过为每次循环迭代生成循环体的副本来展开 for 循环 |
coder.varsize | 声明可变大小数据 |
类
coder.ArrayType | 表示输入设定可接受的一组 MATLAB 数组 |
coder.Constant | Specification of constant value for code generation |
coder.EnumType | Represent set of MATLAB enumerations acceptable for input specification |
coder.FiType | Represent set of MATLAB fixed-point arrays acceptable for input specification |
coder.mexconfig | Code acceleration configuration object for use with
fiaccel |
coder.PrimitiveType | Represent set of logical, numeric, or character arrays acceptable for input specification |
coder.StructType | Represent set of MATLAB structure arrays acceptable for input specification |
coder.Type | 表示输入设定可接受的一组 MATLAB 值 |
主题
- Accelerate Code Using fiaccel
Accelerating fixed-point code via compiled C code MEX function generation.
- Accelerate Code for Variable-Size Data
Describes how Fixed-Point Designer works with variable-size data.
- Generate C Code from Code Containing Global Data
Describes how to compile functions that use global data and how to synchronize global data with MATLAB.
- Specify Number of Entry-Point Function Input or Output Arguments to Generate
Control the number of arguments in generated entry-point functions.
- Control Run-Time Checks
Describes how and why to use run-time checks.