| United States-English |
|
|
|
![]() |
HP-UX Systems: HP aC++ Release Notes > Chapter 1 HP
aC++ Release NotesNew Features in Version A.03.37 |
|
New features in HP aC++ version A.03.37 are listed below: Rogue Wave Tools.h++ library version 7.1.1 can now be used with -AA option, that is, it can be used with the Standard C++ Library 2.1.1. Note that the earlier Tools.h++ library version 7.0.6 could not be used with -AA. The current compiler supports only ASCII strings or characters (8 bit chars with no transliteration) as UTF-16. UTF-16 is described in the Unicode Standard, version 3.0 [UNICODE]. The definitive reference is Annex Q of ISO/IEC 10646-1 [ISO-10646]. Any string or character which is preceded by ‘u’ is recognized as a UTF-16 literal or character and is stored as an unsigned short type. Example:
The __restrict keyword is now recognized by the compiler. Refer to the description of the C99 restrict type-qualifier keyword in ISO/IEC 9899:1999 (6.7.3). The +ub option treats unqualified bit fields as unsigned. The +sb option treats unqualified bit fields as signed. The +uc option overrides +sb option for char bitfields. Note that in 64 bit mode, +sb option is set by default, to match HP C. With this release, covariant return type feature is fully supported. Basically, return type of an overriding function can be a pointer or reference to a class derived from the return type of the base class.Example 1:
Example 2:
Support for using the PCH feature with -AA option has been improved. A significant number of problems have been addressed since the previous release. Note that, this feature is not fully supported in -AA mode. There may be unexpected compile-time problems. See HP aC++ Online Programmer’s Guide at http://docs.hp.com for more details. Ability to debug the optimized C++ code (DOC) has been improved significantly in this release. To use these improvements, set the environment variable aCC_DOC_MODE to ON. Example:
Now, with the improved DOC, while debugging the above sample program you can display the correct value of local variable j.
Standard C++ Iostreams have been further tuned to improve the performance of I/O. Sometimes, the obtained performance may be comparable to that of old iostream.h library (that is, -AP). Using the string template (with -AP) in a threaded environment may result in excessive contention on a single null string mutex. This is because of the usage of a single null string object for default initialization and string modifications. This fix is enabled with -D__HPACC_THREAD_NULL_STRING
The following patches must be installed after installing version A.03.37 to able all new features: For HP-UX 11.00:
For HP-UX 11.11:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||