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 Itanium-based 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 runtime performance. These options are:

-fast

-fast

The -fast option selects a combination of optimization options for optimum execution speed and reasonable build times. This option is equivalent to +Ofast. Currently chosen options are:

  • +O2

  • +Ofltacc=relaxed

  • +Onolimit

  • +DSnative

  • +FPD

You can override any of the options in -fast by specifying a subsequent option after it.

Use this option 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

  • +Ofltacc=relaxed

  • +Onolimit

  • +DSnative

  • +FPD

  • -Wl,+pi,1M

  • -Wl,+pd,1M

  • -Wl,+mergeseg

This option is a synonym for -fast.

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

+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. The default is blended.

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.

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