Main Content

Prioritized objectives

Prioritized list of Code Generation Advisor objectives to apply for reviewing model configuration parameter settings

Model Configuration Pane: Code Generation

Description

List of objectives that you specify in order of priority for reviewing model configuration parameter settings by using the Code Generation Advisor. To select and prioritize objectives, click Set Objectives and make changes in the Set Objectives - Code Generation Advisor dialog box.

Dependencies

  • This parameter appears only when System target file is set to an ERT-based system target file. For GRT-based system target file configurations, select an objective by using the parameter Select objective.

  • To generate code, this parameter requires Embedded Coder®.

Settings

Unspecified (default) | Execution efficiency | ROM efficiency | RAM efficiency | Traceability | Safety precaution | Debugging | MISRA C:2012 guidelines | Polyspace | ...

Default: Unspecified

Unspecified

No objective specified. Do not optimize code generation settings by using the Code Generation Advisor.

Execution efficiency

Configure code generation parameter settings to achieve fast execution time.

ROM efficiency

Configure code generation parameter settings to reduce ROM usage.

RAM efficiency

Configure code generation parameter settings to reduce RAM usage.

Traceability

Configure code generation parameter settings to provide mapping between model elements and code.

Safety precaution

Configure code generation parameter settings to increase clarity, determinism, robustness, and verifiability of the code.

Debugging

Configure code generation parameter settings to debug the code generation build process.

MISRA C:2012 guidelines

Configure code generation parameter settings to increase compliance with MISRA C:2012 guidelines.

Polyspace

Configure code generation parameter settings to prepare the code for Polyspace® analysis.

Note

If you select the MISRA C:2012 guidelines code generation objective, the Code Generation Advisor checks:

  • The model configuration settings for compliance with the MISRA C:2012 configuration setting recommendations.

  • For blocks that are not supported or recommended for MISRA C:2012 compliant code generation.

Recommended Settings

ApplicationSetting
DebuggingDebugging
TraceabilityTraceability
EfficiencyExecution efficiency (execution), ROM efficiency (ROM), RAM efficiency (RAM)
Safety precautionSafety precaution

Programmatic Use

Parameter: ObjectivePriorities
Type: cell array of character vectors or string array
Value: {''} | {'Execution efficiency'} | {'ROM efficiency'} | {'RAM efficiency'} | {'Traceability'} | {'Safety precaution'} | {'Debugging'} | {'MISRA C:2012 guidelines'} | {'Polyspace'} | cell array of objective names
Default: {''}

Version History

Introduced in R2009a