HP aC++ A.03.85 Release Notes

HP aC++ Release Notes
What’s in This Version
Chapter 18
NOTE Pragmas other than the above are ignored with a warning during compilation
with the option +hpxstd98. For limitations and more details about this option,
see the “HP aC++ Online Programmer’s Guide”.
New Features in Version A.03.70
Following are the new features in HP aC++ version A.03.70:
The HP Code Advisor, a source code analysis tool
•The -fshort-enums command-line option
•The _HP_NONSTD_FAST_IOSTREAM performance improvement directive
•The +rodata_array_init Option for Memory efficient initialization for local arrays
Option mapping support for easy migration
Configuration file to set sitewide default options
C++ Standard Library Change
The HP Code Advisor, a source code analysis tool
This release introduces a new tool, HP Code Advisor (cadvise) that enables programmers to
detect various programming errors in C and C++ source code. This tool helps you to identify
potential coding errors, porting issues, and security errors.
You can invoke this tool from /opt/cadvise/bin/cadvise in the command line. For more
information on how to use the various options in this tool, see the HP code Advisor Release
Notes.
The updated version of the HP Code Advisor is also available for free download at:
http://www.hp.com/go/cadvise
The -fshort-enums Command-Line Option
This new command-line option allocates only as many bytes as required for the declared range
of possible values to an enum type. The enum type is equivalent to the smallest integral type,
which has enough memory space for the declared enumerator range.