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

HP aC++ Release Notes
New Features in Version A.03.70
Chapter 112
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.
NOTE Using -fshort-enums causes the compiler to generate code that may be binary
incompatible with the code generated without this option. To generate compatible code, do
not use or define external enumerators (defined or used in other source files or shared
libraries) that are compiled without this option.