HP-UX 11i Version 1.6 Release Notes
Programming
aC++ and C Compilers
Chapter 7
92
aC++ and C Compilers
HP aC++ Itanium Processor Family (IPF) compiler, version A.05.36, supports much of
the ISO/IEC 14882 Standards for the C++ Programming Language (the international
standard for C++). When invoked as a C compiler, it supports the American National
Standard for Information Systems - Programming language C, ANS X3.159-1989 (the
ANSI C 89 standard).
Summary of Change
C language support is migrated from the existing HP-C product to aC++. As a result, the
following two changes are made to HP-UX 11i v1.6 as compared to HP-UX 11i v1.5:
• The bundled C compiler in /usr/ccs/bin/cc_bundled is replaced with a driver that
invokes the aC++ compiler in ANSI C mode.
• The aC++ headers are added into /usr/include/aCC and /usr/include/aCC_std.
This is to facilitate ISVs and other users who wish to use g++ in favor of aC++.
Details of Change
C language compilation support on IPF platforms is being migrated from the HP-C
compiler to a common aC++ compiler which compiles both C and C++ language
programs. As a result, the bundled C compiler, /usr/ccs/bin/cc_bundled, is now a
driver that invokes the aC++ compiler in ANSI C mode. The C Tools previously delivered
with the HP-C compiler are no longer accessible in /opt/ansic/bin. These tools are:
lint, cb, cflow, cxref, endif, protogen. For this release, they are installed with the
legacy HP-C compiler in /opt/ansic/legacy_hpc/bin.
Users must use absolute paths to reference the old legacy HP-C compiler (cc) and C
Tools (lint, cb, cflow, cxref, endif, protogen). That is, the path to the old HP-C
compiler and C Tools is not included in /etc/PATH or /etc/MANPATH.
Review the new +legacy_hpc option for information on using the cc driver to invoke the
legacy HP-C compiler.
The aC++ headers are now delivered as part of HP-UX 11i v1.6 operating system.
Previously, these were delivered with the aC++ compiler. This is done primarily to
facilitate users who wish to use g++ without installing the aC++ compiler. The default
include file and library paths in the compiler drivers have been updated to reflect the
new location of the aC++ headers.
Our goal is to provide a viable ANSI-C compiler based on a common C/C++ compiler code
base with a very high level of compatibility with the previous release of the HP-C in
HP-UX 11i v1.5 compiler. There are a small number of known differences, though,
between the two compilers that are listed in the “compatibility exception list” (refer to
the COMPATIBILITY section that follows), essentially covering deprecated features
available in the previous IPF C compiler. We expect that these differences would not
impact applications that are migration candidates for the IPF platform, but the new
compiler also supports a +legacy_hpc option under which it simply serves as a wrapper
for the old compiler.