|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 Check model
before generating code on the Code Generation pane
in the Configuration Parameters dialog box 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.|