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

The effect of this option can be overridden by setting the environment variable
LD_PROFILEBUCKET_SIZE when running the instrumented program. This
environment variable has no effect when building the instrumented program. Legal
values are 16 (the default), and 32.
See gprof(1) and ld(1) manpages for more details.
Runtime Checking Options
The +check options allow you to check your application for errors at runtime.
+check
+check=all|none|bounds|globals|lock|malloc|stack|thread|truncate|uninit
The +check=xxx options provide runtime checks to detect many common coding
errors in the user program. These options introduce additional instructions for runtime
checks that can significantly slow down the user program. By default, a failed check
will result in the program aborting at the end of execution at runtime. In most cases,
an error message and a stack trace will be emitted to stderr before program
termination. The environment variable RTC_NO_ABORT can be set to 0, 1, or 2 to
change the behavior of failed runtime checks:
0 — A failed runtime check will abort the program immediately after the error
message is emitted.
1 The default setting, which will abort the program at the end of execution upon
failure.
2 — A failed runtime check will not enable the end of execution abort.
The +check options need to be specified at both compile time and link time, since they
may require additional libraries to be linked into the user program. If different +check
options are specified while compiling different source files, all the specified +check
options are needed at link time.
Multiple +check options are interpreted left to right. In case of conflicting options, the
one on the right will override an earlier +check option.
NOTE: The +check option is only supported on Integrity servers.
+check=all
The +check=all option enables all runtime checks provided by the compiler, except
for +check=truncate, +check=lock, and +check=thread, which must be explicitly
specified to enable them. It overrides any +check=xxx options that appear earlier on
the command line. The +check=all option is currently equivalent to the following
options:
+check=bounds:array +check=globals +check=malloc
+check=stack:variables +check=uninit -z
Runtime Checking Options 101