11.4. Finer Control Over Optimization

The HP compilers provide several options and pragmas to fine tune the optimizer's behavior. In general, most options are applicable between the C, C++, and Fortran compilers and between the IPF and PA-RISC compilers. However, some options may be available for only a particular compiler. Refer to the man page or on-line documentation for a specific compiler to see if a particular option is supported or not.

When combining multiple compiler options together on a command line, the options are applied from left to right on the command line. Therefore, options on the right may override options previously specified on the left. This feature of the compiler allows for greater flexibility in enabling and disabling ...

Get HP-UX 11i Tuning and Performance now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.