HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
part of the user-specified optimization level. If +wsecurity is used in addition to -ipo
or +O4, the generated code is not affected and the compile time does not significantly
increase.
This option can optionally take an argument to control how verbosely the security
messages are emitted:
+wsecurity[={1|2|3|4}]
The higher the check level, the more warnings can be generated. Note that this may also
generate more false positives.
The default level is 2.
Exception Handling
By default, exception handling is enabled. To turn off exception handling, use the following
option.
+noeh
+noeh
The +noeh option disables exception handling. With exception handling disabled, the
keywords throw and try generate an error.
Mixing code compiled with and without +noeh may give undesired results.
Example:
aCC +noeh progex.C
This command compiles and links progex.C, which does not use exception handling.
See Chapter 8: “Exception Handling” (page 200) for more information.
Extensions to the Language
These options support extensions to the C++ language.
-ext
-ext
Specifying -ext, enables the following HP aC++ extensions to the C++ standard:
• 64-bit integer data type support for:
long long (signed 64-bit integer)◦
◦ unsigned long long (unsigned 64-bit integer)
• Use this option to declare 64-bit integer literals and for input and output of 64-bit
integers.
• #assert, #unassert preprocessor directives, which allow you to set a predicate
name or predicate name and token to be tested with a #if directive.
Exception Handling 47