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
|B||Select the relative order
|C||Configure the Code Generation Advisor to run before
generating code by setting the Check model before generating
code configuration parameter to |
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.|