HP aC++/HP C A.06.25 Programmer's Guide

NOTE: The +Oinfo option can be used to display additional information on the
various optimizations being performed.
+tls=[static|dynamic]
+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:
static
This is a more efficient mode in which only thread local data in the program
startup set can be accessed.
dynamic
This is a less efficient mode in which thread local data outside the program
startup set can be accessed as well. This is the default.
Translation units compiled with different settings of this option may be freely mixed,
even within the same load module.
+wlock
+wlock
The +wlock option enables compile-time diagnostic messages for potential errors in
using lock/unlock calls in programs that use pthread-library-based lock/unlock functions.
Warnings are emitted for acquiring an already acquired lock, releasing an already
released lock, and unconditionally releasing a lock that has been conditionally acquired.
This diagnostic checking is based on cross-module analysis performed by the compiler.
Therefore, the +wlockoption implicitly enables a limited form of cross-module analysis,
even if -ipo or+O4 options are not specified. This can lead to a significant increase in
the compile time compared to a build without the +wlock option. Using this option
could result in the compiler invoking optimizations other than those that are part of
the user-specified optimization level. If +wlock is used in addition to -ipo or +O4,
the generated code is not affected, and the compile time does not increase much.
Performance Options
The HP compiler provides a variety of options to help improve build and runtime
performance. These options are:
-fast
-fast
92 Command-Line Options