HPlogo HP C/HP-UX Programmer's Guide: Workstations and Servers > Chapter 4 Optimizing HP C Programs

Supporting Optimization Options

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Table 4-2 “Other Supporting Optimizations ” 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. Benefits most applications, especially large applications with multiple compilation units. May be used at any optimization level.

 

© Hewlett-Packard Development Company, L.P.