| United States-English |
|
|
|
![]() |
HP-UX Systems: HP aC++/HP C Programmer's Guide > Chapter 2 Command-Line OptionsParallel Processing Options |
|
HP aC++ provides the following optimization options for parallel code. 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. There are three possible sets of flags depending on your operating system and the libstd you use. Table 2-4 “Option Matrix for -mt” lists the option matrix for -mt. Table 2-4 Option Matrix for -mt
* required if -D_POSIX_C_SOURCE is used. The following macros are used to compile multi-thread source code:
See “Using Threads” for more information. +O[no]report[=report_type] The +O[no]report option causes the compiler to display[not to display] various optimization reports. Usage: The value of report_type determines which report is displayed, as described below:
The +Onoreport option does not accept any of the report_type values and turns off all reporting. The +Oreport[=report_type] option is active only at optimization levels 3 and above. The default is +Onoreport. See Parallel Programming Guide for HP-UX Systems for more information.
+tls=[static|dynamic] The +tls option specifies whether references to thread local data items are to be performed according to the mode. Usage: +tls=mode The defined values of mode are:
Translation units compiled with different settings of this option may be freely mixed, even within the same load module. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||