Optimizing Translator
Optimization means maximizing the runtime performance of the object. All ILE languages have access to the optimization techniques provided by the ILE optimizing translator. Generally, the higher the optimization level, the longer it takes to create the object. At runtime, highly optimized programs or service programs should run faster than corresponding programs or service programs created with a lower level of optimization.
- 10 or *NONE
- 20 or *BASIC
- 30 or *FULL
- 40 (more optimization than level 30)
For performance reasons, it is probably desirable to use a high level of optimization when a program is put in production. For initial testing, it might be necessary to use a lower optimization level because of debugging limitations. However, it is strongly suggested that you use the optimization level at which a program is released for final testing because some bugs, such as uninitialized data, might only be exposed at higher optimization levels.
Because optimization at level 30 (*FULL) or level 40 can significantly affect your program instructions, you may need to be aware of certain debugging limitations and different addressing exception detection. Refer to Debugging Considerations for debug considerations. Refer to Exceptions in Optimized Programs for addressing error considerations.