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-UX Systems: HP aC++/HP C Programmer's Guide > Chapter 2 Command-Line Options

Performance Options

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The HP compiler provides a variety of options to help improve build and run-time performance. These options are:

-fast

-fast

The -fast option selects a combination of optimization options for optimum execution speed and reasonable build times. Currently chosen options are:

  • +O2

  • +Olibcalls

  • +Ofltacc=relaxed

  • +Onolimit

  • +DSnative

  • +FPD

You can override any of the options in -fast by specifying a subsequent option after it. This option is equivalent to +Ofast.

Use this option may when porting C++ and C applications compiled on other UNIX operating systems to HP-UX.

NOTE: Do not use this option for programs that depend on IEEE standard floating-point denormalized numbers. Otherwise, different numerical results may occur.

+Ofast

+Ofast

The +Ofast option selects a combination of optimization options for optimum execution speed for reasonable build times. Currently chosen options are:

  • +O2

  • +Olibcalls

  • +Ofltacc=relaxed

  • +Onolimit

  • +DSnative

  • +FPD

This option is equivalent to +Ofast.

+Ofaster

+Ofaster

The +Ofaster option is equivalent to +Ofast with an increased optimization level. If used with +Oprofile=use, the optimization level will be +O4. Otherwise it will be +O3. The definition of +Ofaster may change or it may be deprecated in future releases.

+[no]srcpos

+[no]srcpos

The +[no]srcpos option controls the generation of source position information for the Caliper. The default is +srcpos.

When +srcpos, is in effect, the compiler generates source position information. When +nosrcpos is in effect, the compiler does not generate this information and the compiler instructs the linker to discard any of this information found in the object files.

+DSmodel

+DSmodel

The +DSmodel option performs instruction scheduling for a particular implementation of the Itanium®-based architecture.

model can be either of the following four values.

blended

Tune to run reasonably well on multiple implementations. As old implementation become less important and new implementations are added, the behavior with this value will change accordingly.

itanium

Tune for the Itanium® processor

itanium2

Tune for the Itanium2® processor

native

Tune for the processor on which the compiler is running.

The default is blended.

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