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

Combining Optimization Parameters

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Optimization parameters that affect code size, compile-time, and the aggressiveness of the optimizations performed can be combined with a level of optimization.

For example, to specify conservative optimizations at level 2 and disable code-expanding optimizations, use:

cc +O2 +Oconservative +Osize sourcefile.c

+Olimit and +Osize can be used with either +Oaggressive or +Oconservative.

You cannot use +Oaggressive with +Oconservative.

© Hewlett-Packard Development Company, L.P.