HP aC++/HP C A.06.25 Programmer's Guide
The default is +Onoinfo at levels 0-4.
Parallel Processing Options
HP aC++ provides the following optimization options for parallel code.
-mt
The -mt option enables multi-threading capability without the need to set any other
flags, such as -l and -D. HP aC++ examines your environment and automatically
selects and sets the appropriate flags. “Performance Options” (page 219).
There are three possible sets of flags depending on your operating system and the
libstd you use. Table 2-4 lists the option matrix for -mt.
Table 2-4 Option Matrix for -mt
FlagsLibraries
-D_REENTRANT
-DRW_MULTI_THREAD
-DRWSTD_MULTI_THREAD
-D_THREAD_SAFE
-D_POSIX_C_SOURCE=199506L
-D_HPUX_SOURCE *
-lpthread
old-lib
libstd 1.2.1
(-AP)&
librwtool 7.0.x
-D_REENTRANT
-D_RW_MULTI_THREAD
-D_RWSTD_MULTI_THREAD
-D_POSIX_C_SOURCE=199506L
-D_HPUX_SOURCE *
-lpthread
new-lib
(-AA)
libstd 2.2.1
-D_REENTRANT
-D_POSIX_C_SOURCE=199506L
-lpthread
C mode
-Ae/-Aa
* required if -D_POSIX_C_SOURCE is used.
Parallel Processing Options 89