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

Using Advanced Optimization Options

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Several advanced optimization options can be specified on the same command line. For example, the following command line specifies aggressive level 3 optimizations with unrestricted compile time, disables software pipelining, and disables moving conditional floating-point instructions out of a loop:

cc +O3 +Oaggressive +Onolimit +Onomoveflops +Onopipeline \
sourcefile.c

Specify the level of optimization first (+O1, +O2, +O3, or +04), followed by any +O[no]optimization options.

© Hewlett-Packard Development Company, L.P.