Main Content

Prioritized objectives

Description

List of the objectives that you specify in order of priority for reviewing your model configuration settings by using the Code Generation Advisor. To specify objectives, click the Set Objectives button and use the Set Objectives - Code Generation Advisor dialog box.

Category: Code Generation

Settings

Default: Unspecified

Unspecified

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

Execution efficiency

Configure code generation settings to achieve fast execution time.

ROM efficiency

Configure code generation settings to reduce ROM usage.

RAM efficiency

Configure code generation settings to reduce RAM usage.

Traceability

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

Safety precaution

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

Debugging

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

MISRA C:2012 guidelines

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

Polyspace

Configure code generation 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.

Dependencies

  • This parameter appears only for ERT-based targets. For GRT-based targets, select an objective by using the parameter Select objective.

  • When you generate code, this parameter requires Embedded Coder®.

Command-Line Information

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: {''}

Recommended Settings

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

Related Topics