HP C A.06.05 Reference Manual

Compiling and Running HP C Programs
Compiling HP C Programs
Chapter 9218
+O[no]store_ordering Preserves [does not preserve] the original program
order for stores to memory that is visible to multiple
threads.
+O[no]volatile Treats all global variables as [not] volatile.
+O[no]whole_program_mode Enables [disables] assertion for files compiled with
this option.
+O[0|1|2|3|4] Specifies the level of optimization.
+Ofast Selects a combination of optimization options for
optimum execution speed and reasonable build
times.
+Ofaster Equivalent to +Ofast with an increased
optimization level.
+Ofrequently_called Calls a list of functions that are frequently called.
This option overrides any information in a profile
database.
+Oinlinebudget Controls the compile time budget for the inliner.
+Ointeger_overflow Ensures that runtime integer arithmetic
expressions that arise in certain contexts do not
overflow.
+Olevel Lowers optimization to a specified level for one or
more functions.
+Olit Places data items that do not require load-time or
runtime initialization in a read-only data section.
+Oprefetch_latency Applies to loops for which the compiler generates
data prefetch instructions.
+Orarely_called Calls a list of functions that are rarely called. This
option overrides any information in a profile
database.
Table 9-1 HP C Compiler Options at a Glance (Continued)
Option Description