Main Content

Set Objectives — Code Generation Advisor Dialog Box

Description

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

Category: Code Generation

Settings

  1. From the Available objectives list, select objectives.

  2. Click the select button (arrow pointing right) to move the objectives that you selected into the Selected objectives - prioritized list.

  3. Click the higher priority (up arrow) and lower priority (down arrow) buttons to prioritize the objectives.

Objectives

List of available objectives.

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.

Priorities

After you select objectives from the Available objectives parameter, organize the objectives in the Selected objectives - prioritized parameter with the highest priority objective at the top.

Dependency

This dialog box appears only for ERT-based targets.

Command-Line Information

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

Related Topics