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

Porting Options

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Use the following options as necessary when porting your code from other operating environments to HP-UX.

-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 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.

+sb

+sb

The +sb option specifies unqualified char, short, int, long, and long long bitfields as signed. The default is +sb.

NOTE: When both +sb and +uc are in effect, +uc will override this for char bit fields.

+ub

+ub

The +ub option specifies unqualified char, short, int, long, and long long bitfields as unsigned. This option has no effect on signedness of enum bitfields or on signedness of non-bitfield char. The default is +ub.

+uc

+uc

By default, all unqualified char data types are treated as signed char. Specifying +uc causes an unqualified (plain) char data type to be treated as unsigned char. (Overloading and mangling are unchanged.)

Use this option to help in porting applications from environments where an unqualified (plain) char type is treated as unsigned char.

NOTE: Since all unqualified char types in the compilation unit will be affected by this option (including those headers that define external and system interfaces), it is necessary to compile the interfaces used in a single program uniformly.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.