Supporting Optimization Options [ HP C Programmer's Guide ] MPE/iX 5.0 Documentation
HP C Programmer's Guide
Supporting Optimization Options
Table 4-2 shows optimization options that support the core
optimization levels. These optimizations are performed only when
specifically invoked. They are available at all optimization levels.
Table 4-2. Other Supporting Optimizations
----------------------------------------------------------------------------------------------
| | | |
| Option | Description | Benefits |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| +ESlit | Places string literals and constants | Reduces memory requirements and |
| | defined with the ANSI C const type | improves run-time speed in |
| | qualifier into read-only data | multi-user applications. Can |
| | storage. | improve data-cache utilization. |
| | | |
----------------------------------------------------------------------------------------------
| | | |
| +I, +P (1) | Enables all profile-based | Improves code locality and cache hit |
| | optimizations. Uses execution | rates. Improves efficiency of other |
| | profile data to identify the most | optimizations. Benefits most |
| | frequently executed code paths. | applications, especially large |
| | Repositions functions, basic blocks, | applications with multiple |
| | and aids other optimizations | compilation units. May be used at |
| | according to these frequently | any optimization level. |
| | executed paths. | |
| | | |
----------------------------------------------------------------------------------------------
(1) These options are only available in HP C/HP-UX.
MPE/iX 5.0 Documentation