HP C Programmer's Guide (92434-90009)

Chapter 4 61
Optimizing HP C Programs
Supporting Optimization Options
Supporting Optimization Options
Table on page 61 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
+ESfic Replaces millicode calls with inline code. Run-time code is faster because fast
indirect calls are used instead of
millicode calls.
+ESlit Places string literals and constants
defined with the ANSI C const type
qualifier into read-only data storage.
Reduces memory requirements and
improves run-time speed in multi-user
applications. Can improve data-cache
utilization.
+I, +P Enables all profile-based optimizations.
Uses execution profile data to identify the
most frequently executed code paths.
Repositions functions, basic blocks, and
aids other optimizations according to
these frequently executed paths.
Improves code locality and cache hit
rates. Improves efficiency of other
optimizations.Benefitsmostapplications,
especially large applications with
multiple compilation units. May be used
at any optimization level.