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

Removing Compilation Time Limits When Optimizing

» 

Technical documentation

Complete book in PDF

 » Table of Contents

You can remove optimization time restrictions at the second, third, or fourth optimization levels by using the +Onolimit option as follows:

cc
+O2 +Onolimit sourcefile.c

or:

cc
+O3 +Onolimit sourcefile.c

or:

cc
+O4 +Onolimit sourcefile.c

By default, the optimizer limits the amount of time spent optimizing large programs at levels 2, 3, and 4. Use this option if longer compile times and greater virtual memory use are acceptable because you want additional optimizations to be performed.

© Hewlett-Packard Development Company, L.P.