Main Content
cgsl_0301: Prioritization of code generation objectives for code efficiency
ID: Title | cgsl_0301: Prioritization of code generation objectives for code efficiency | ||
---|---|---|---|
Description | Prioritize code generation objectives for code efficiency by using the Code Generation Advisor. | ||
A | Assign priorities to code
(ROM , RAM , and Execution
efficiency ) efficiency objectives. | ||
B | Select the relative order
of ROM , RAM ,
and Execution efficiency based on application
requirements. | ||
C | Configure the Code Generation Advisor to run before
generating code by setting the Check model before generating
code configuration parameter to On (proceed with
warnings) or On (stop for
warnings) . | ||
Notes | A model's configuration parameters provide control over many aspects of generated code. The prioritization of objectives specifies how configuration parameters are set when conflicts between objectives occur. Prioritizing code efficiency objectives above safety objectives may remove initialization or run-time protection code (for example, saturation range checking for signals out of representable range). Review the resulting parameter configurations to verify that safety requirements are met. | ||
Rationale | A, B, C | When you use the Code Generation Advisor, configuration parameters conform to the objectives that you want and they are consistently enforced. | |
See also | |||
Last Changed | R2015b |