HP aC++ A.03.85 Release Notes

HP aC++ Release Notes
New Features in Version A.03.37
Chapter 130
Improved DOC (Debug Optimized Code) Support
Ability to debug the optimized C++ code (DOC) has been improved significantly in this
release. To use these improvements, set the environment variable aCC_DOC_MODE to ON.
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