HPlogo HP C/HP-UX Programmer's Guide: HP 9000 Computers > Chapter 4 Optimizing HP C Programs

Combining Optimization Parameters

» 

Technical documentation

Complete book in PDF

 » Table of Contents

You can combine optimization parameters that affect code size, compile-time, and the aggressiveness of the optimizations 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.