HP aC++/HP C A.06.20 Release Notes
2 What’s New in This Version
This chapter gives an overview of the new command line options and features
introduced in this version of the HP aC++/HP C compiler.
Version A.06.20 of the HP aC++/HP C compiler provides complete source and binary
compatibility with earlier versions of the A.06.xx family.
New Features in Version A.06.20
Version A.06.20 of the HP aC++ compiler supports the following new features:
• Decimal floating-point arithmetic (HP-UX 11.31 only) (New)
• +annotate=structs (New)
• +check=lock (New)
• +check=thread (New)
• +O[no]autopar option now supported in C++ mode and implies -mt (New)
• +O[no]dynopt (New)
• +inline_level num (Enhanced)
• -dumpversion (New)
• #include_next (New)
• #pragma diag_push (New)
• #pragma diag_pop (New)
• +Oinlinebudget is deprecated
• In next release, default C compilation mode will change from C89 to C99
• In next release, default C++ compilation mode changes to full -AA
Decimal floating-point arithmetic (HP-UX 11.31 only) (New)
On HP-UX 11.31 systems, support is now included for decimal floating-point arithmetic
for C. This support follows the current draft revision of the IEEE 754 floating-point
standard and ISO/IEC Technical Report 24732, Extensions for the programming language
C to support decimal floating-point arithmetic. With decimal FP (unlike the usual binary
FP), typical numerical strings can be represented exactly in the types, avoiding subtle
input errors and confusion from inexact output. Therefore, decimal FP is WYSIWYG.
Decimal FP is designed particularly for financial applications, including banking,
billing, tax calculation, currency exchange, and accounting.
A decimal FP representation is best thought of as a triple (s, c, q) composed of a sign (1
or −1), an integral coefficient, and a quantum exponent, representing s * c *10
q
. Therefore,
123. = (1, 123, 0) and 123.00 = (1, 12300, −2) are different representations, although they
have the same numerical value and compare equal. Arithmetic operations are defined
to preserve the position of the decimal point, much as hand-computation would. For
New Features in Version A.06.20 9