Documentation

模型配置参数:代码生成

TheCode Generation类别包括用于定义代码生成过程(包括目标选择)的参数。它还包括用于将注释和布拉格斯插入数据和功能的生成代码中的参数。这些参数需要一个万博1manbetx®Coder™执照。基于ERT的目标可用的其他参数需要嵌入式编码器®执照。

这些配置参数出现在Configuration Parameters>Code Generationgeneral category.

Parameter Description

System target file

Specify which target file configuration will be used.

浏览

浏览file configuration options.

Language

指定C或C ++代码生成。

Description

A description of the target file.

Generate code only

指定代码生成与可执行文件。

Package code and artifacts

Specify whether to automatically package generated code and artifacts for relocation.

Zip file name

指定名称.zipfile in which to package generated code and artifacts for relocation.

编译器优化级别

Control compiler optimizations for building generated code.

Custom compiler optimization flags

指定自定义编译器优化标志。

Toolchain

指定在构建可执行文件或库时要使用的工具链。

Build configuration

Specify compiler optimization or debug settings for toolchain.

Tool/Options

显示或自定义构建配置设置。

Generate makefile

Enable generation of a makefile based on a template makefile.

Make command

指定一个命令和可选附加makefile options.

模板makefile

Specify the template makefile from which to generate the makefile.

Select objective / Prioritized objectives

Select code generation objectives to use with the Code Generation Advisor.

Set Objectives

Open Configuration Set Objectives dialog box.

Set Objectives — Code Generation Advisor Dialog Box

Select and prioritize code generation objectives.

在生成代码之前检查模型

Choose whether to run Code Generation Advisor checks before generating code.

检查模型

检查模型是否符合代码生成目标。

These configuration parameters are under theAdvanced parameters.

Parameter Description

Custom FFT library callback

在MATLAB中为FFT函数生成的代码中指定FFTW库的回调类®code.

Custom LAPACK library callback

Specify LAPACK library callback class for LAPACK calls in code generated from MATLAB code.

冗长的构建

Display code generation progress.

Retain .rtw file

Specifymodel.rtwfile retention.

Profile TLC

Profile the execution time of TLC files.

Enable TLC assertion

Produce the TLC stack trace.

Start TLC coverage when generating code

生成TLC执行报告。

生成代码时启动TLC调试器

Specify use of the TLC debugger

Package(Embedded Coder)

指定包含要应用于模型级功能和内部数据的内存部分的软件包。

Refresh package list(Embedded Coder)

Add user-defined packages that are on the search path to list of packages.

Initialize/Terminate(Embedded Coder)

Specify whether to apply a memory section to Initialize/Start and Terminate functions.

Execution(Embedded Coder)

Specify whether to apply a memory section to execution functions.

共享实用程序(Embedded Coder)

Specify whether to apply memory sections to shared utility functions.

Constants(Embedded Coder)

Specify whether to apply a memory section to constants.

Inputs/Outputs(Embedded Coder)

指定是否将内存部分应用于根输入和输出。

Internal data(Embedded Coder)

Specify whether to apply a memory section to internal data.

Parameters(Embedded Coder)

Specify whether to apply a memory section to parameters.

Validation results(Embedded Coder)

Display the results of memory section validation.

The following parameters underAdvanced parameters很少使用,没有其他文档。

Parameter Description
PostCodeGenCommand
character vector-''
Add the specified post code generation command to the model build process.
TLCOptions
character vector-''
Specify additional TLC command-line options.

The following parameters are for MathWorks use only.

Parameter Description
评论 对于数学工作,仅使用。
PreserveName 对于数学工作,仅使用。
PreserveNameWithParent 对于数学工作,仅使用。
SignalNamingFcn 对于数学工作,仅使用。
TargetTypeEmulationWarnSuppressLevel
int-0

对于数学工作,仅使用。

当大于或等于2时,抑制警告消息在快速原型制作环境中模拟整数时会显示的警告消息。

The Configuration Parameters dialog box also includes other code generation parameters:

相关话题

这个话题有帮助吗?