HP C B.11.11.16 Release Notes
HP C/ANSI C Release Notes
What’s in This Version
Chapter 1 5
What’s in This Version
This section gives an overview of the new features introduced in this version of the HP C
compiler.
New Features in Version B.11.11.16
HP C compiler version B.11.11.16 supports the following new features:
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
Complete Support for the __restrict (C99) Keyword
HP C version B.11.11.16 supports the array[__restrict] notation. Using __restrict as
array subscript enables the compiler to optimize based on the assumption that no element of
the array can be changed through another pointer.
Support for Unnamed Structs and Unions (MSVC and GCC)
This version of HP C provides enhanced support for unnamed structs and unions in the -Ae
compilation mode, which is currently the default compilation mode. The following example is
an illustration of unnamed unions syntax and usefulness:
enum Type {tp_none, tp_char, tp_int, tp_double};
struct Val {
enum Type tp;
union {
char c;
int i;
double d;
};