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

Enabling Basic Optimization

» 

Technical documentation

Complete book in PDF

 » Table of Contents

To enable basic optimizations, use the -O option (equivalent to +O2), as follows:

cc
-O sourcefile.c

Basic optimizations do not change the behavior of ANSI C standard-conforming code. They improve run-time execution time but only increase compile time and link time by a moderate amount.

© Hewlett-Packard Development Company, L.P.