HP aC++ Release Notes Version A.03.95 (5900-1789; September 2011)

HP aC++ Release Notes
New Features in Version A.03.37
Chapter 134
Example:
$ cat sample.C
#include <stdio.h>
int x = 1;
int main() {
int j = 4;
printf(“we are here:%d:\n”, j);
}
$ aCC_DOC_MODE=ON aCC -g -O sample.C
Now, with the improved DOC, while debugging the above sample program you can display the correct value
of local variable j.
NOTE In further releases, the above environment variable will be automatically set by the
compiler.
Performance Improvements to -AA iostream
Standard C++ Iostreams have been further tuned to improve the performance of I/O. Sometimes, the
obtained performance may be comparable to that of old iostream.h library (that is, -AP).
Thread Muted Contention Fix on Null Strings with -AP
Using the string template (with -AP) in a threaded environment may result in excessive contention on a
single null string mutex. This is because of the usage of a single null string object for default initialization
and string modifications.
This fix is enabled with -D__HPACC_THREAD_NULL_STRING
NOTE There is a very small chance that mixing objects or libraries compiled with and without
-D__HPACC_THREAD_NULL_STRING will lead to incompatibilities. This is because the
new implementation sets the null string reference count to INT_MAX/2 whereas the old
implementation would increment or decrement the reference count. There is a very small
chance that the reference count may incorrectly go to 0 and the null string object may get
deleted.