Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP C/HP-UX Programmer's Guide: HP-UX Systems > Chapter 4 Optimizing HP C Programs

Enabling Aggressive Optimizations

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

To enable aggressive optimizations at any optimization level, use the +Oaggressive option as follows:

cc optimization level +Oaggressive sourcefile.c

Aggressive optimizations are new optimizations or are optimizations that can change the behavior of programs. These optimizations may do any of the following:

  • Convert certain library calls to millicode and inline instructions.

  • Cause the inlined routines strcpy(), sqrt(), fabs(), and alloca() to not return the routine's completion status in ERRNO.

  • Alter stack unwind-based exception handling and asynchronous interrupt handling as a result of instruction scheduling optimization.

  • Cause less precise floating-point results.

  • Cause programs that perform comparisons between pointers to shared memory and pointers to private memory to run incorrectly.

Use aggressive optimizations with stable, well-structured, ANSI-conforming code. These types of optimizations give you faster code, but are riskier than the default optimizations.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2003 Hewlett-Packard Development Company, L.P.