DIGITAL Software Product Description ___________________________________________________________________ PRODUCT NAME: DEC C Version 6.0 for OpenVMS Alpha SPD 25.38.27 DEC C Version 6.0 for OpenVMS VAX DESCRIPTION DEC C is an ANSI-compliant implementation of the C programming language with DIGITAL extensions. The DEC C compiler runs under the OpenVMS VAX and OpenVMS Alpha Operating Systems and generates optimized and position-independent code. DEC C is a native-mode language product, and is integrated into the OpenVMS VAX and OpenVMS Alpha Common Language Environments. All OpenVMS VAX and OpenVMS Alpha system services are available to programs written in DEC C. DEC C programs can invoke, as functions, modules written in other VAX and Alpha languages. DEC C supports OpenVMS VAX and OpenVMS Alpha Record Management Services (RMS) for sequential file organizations and associated access methods. DEC C also supports stream file-access methods common among many C implementations. DEC C provides extensive ANSI C conformance checking, and supports the lint-like features of the DEC Source Code Analyzer. The DEC Source Code Analyzer allows the programmer to check for consistent function usage throughout a program environment. DEC C also generates complete debug and traceback records for use with OpenVMS Debug. Debug allows November 1998 the C programmer to set breakpoints, examine and modify the contents of user variables, and selectively halt or continue program execution. DEC C on OpenVMS Alpha provides IEEE floating point support as defined by, and in conformance with, the IEEE Standard. Features o Separate modes of compilation to support each of five C dialects: - A strict ANSI mode that compiles according to the ANSI standard - A relaxed ANSI mode that compiles according to the ANSI standard but accepts additional DIGITAL extensions - A VAX C mode that supports VAX C extensions - A common mode that supports many common usage C constructs as implemented on UNIX systems including DIGITAL UNIX (also called "K&R" C or "pcc" mode) Corporation - A Microsoft compatibility mode that interprets source programs according to certain language rules followed by the C compiler provided with the Microsoft Visual C++ compiler product. In addition, the features specified by Addendum 1 to the ISO C standard adopted by ISO in November of 1994 (digraphs and the __STDC_VERSION__ predefined macro) can be added to each of these dialects except for VAX C mode. o Data types for numeric, nonnumeric, and systems programming: - DEC C supports, 8, 16, and 32-bit signed and unsigned integers. DEC C OpenVMS Alpha also supports 64-bit signed and unsigned in- tegers. - DEC C supports 32-bit float and 64-bit double floating-point data types. The VAX floating-point formats include D-float and G-float and are user selectable. - DEC C OpenVMS Alpha also supports IEEE floating point format and offers user selectable 64-bit or 128-bit representation for the long double data type. 2 - DEC C supports passing numeric constants by reference in function calls. - DEC C supports the multibyte and wide-character types and features of XPG4, with the locale support available in OpenVMS V6.2 and subsequent versions. - DEC C OpenVMS Alpha, on OpenVMS Version 7.0 and later, supports user-controlled features to specify the use of 64-bit pointers that allow applications to exploit the increased address space capabilities of the Alpha architecture and OpenVMS Alpha Version 7.0 services. These features include command-line qualifiers, #pragma directives, and run-time library specifications that allow the programmer to allocate and access data at run time that is to be beyond the range of addressing afforded by 32-bit pointers. By default, programs compiled by earlier versions of the compiler or on earlier versions of OpenVMS continue to behave as before, strictly within 32-bit address space. Explicit use of the new compiler features allow such programs to be extended to exploit the extended address space with minimal changes to the source code. o Storage allocation using: - Reserved words (globalref, globaldef, and globalvalue) for sharing data among program modules - Reserved words (readonly, noshare, and psect name specification) for control of data attributes and data placement - Reserved words (_align and _unaligned) for specifying the alignment boundaries of data objects - Pragmas to control extern models and structure member alignment and base structure alignment o Option for running only the preprocessor phase of compilation o Option for generating include-file dependency information to aid in construction of files for the DEC Module Management System o Pragmas to control compiler options 3 o Compilation options allowing a choice between fast turnaround and optimization across compilation units o Option to generate a file of prototype-style function declarations suitable for use in a header file from the function definitions (both prototype-style and old-style) contained in a source file. o Enhanced diagnostic message controls with the command-line qualifier /WARNINGS, including the following features: - specify whether a message is issued only once per compilation, or at each occurrence - specify severity of any message with a default severity of in- formation or warning - control optional messages using a single numeric "importance level" - control optional messages using functional groups o Compiler-generated listing file including optional: - Source Code - Include-file contents - Machine code - Macro expansion - Compilation statistics - Symbol table with attributes of source program identifiers - Symbol cross reference, showing for each symbol the source lines where it is defined or used, annotated with type of use o Built-in functions allow access to a subset of VAX and Alpha machine instructions. DEC C OpenVMS Alpha inline-assembly code is also supported giving access to all Alpha machine-code instructions and PAL calls. 4 o Integration into the OpenVMS VAX and OpenVMS Alpha Common Language Environments: - Generation of complete debug and traceback records for OpenVMS VAX and Alpha Debug support - Conformance to the OpenVMS VAX and Alpha Calling Standard - Access to the Common Run-Time Library for general purpose routines and support of multi-language environments - Access to the data management facilities of OpenVMS VAX Record Management Services (RMS) by direct calls to the Common Run-Time Library - Support for providing error diagnostics to the DEC Language-Sensitive Editor and cross-reference information for the DEC Source Code Analyzer - Support for Common Data Dictionary (CDD) - DEC C OpenVMS Alpha support of interaction with routines executing in translated (VAX) mode o Extensive global and local optimizations of generated code for increased performance under OpenVMS o Extensive control over optimization behavior o Interface to the curses screen-manipulation package o Installation kit cooperates with DEC C++ for OpenVMS VAX and OpenVMS Alpha systems Compatibility with Other C Implementations DEC C is a conforming hosted implementation of ANSI X3.159-1989 Programming Language C (ISO/IEC 9899:1990[1994]). It can operate in five different modes: strict ANSI compatibility, relaxed ANSI compatibility (ANSI plus DIGITAL extensions), VAX C compatibility mode, common C (pcc) compatibility mode, and Microsoft C compatibility mode. The last three modes provide many features 5 to ease porting from other environments, though they do not provide 100% emulation of every feature of a particular version of the compilers used in those environments. While many programs written in C for other compilers can be successfully recompiled under DEC C, some incompatibilities among implementations exist. Run-Time Library for C Applications With the exception of OpenVMS VAX Operating Systems prior to V6.1, the complete DEC C Run-Time Library that is needed for use with DEC C is distributed with the OpenVMS VAX and OpenVMS Alpha Operating Systems. The DEC C Run-Time Library provides routines to perform input/output, character and string handling, mathematical computations, memory al- location, and emulation of selected UNIX[R] features. These routines are provided both in shared image and object module library form. Run-time Library Redistribution The DEC C kit may include run-time library components in either shareable image or object library form. DIGITAL grants the user a nonexclusive royalty-free worldwide right to reproduce and distribute these Run-Time Libraries ("the RTLs") provided that the user: o distributes the RTLs only in conjunction with and as a part of the users's software application product, which is designed to operate in the DIGITAL OpenVMS environment; o does not use DIGITAL's name, logo, or trademarks to market the user's software application product; o includes DIGITAL's copyright notice for DEC C on the user's product disk label and/or on the title page of the documentation for the software application product; and o agrees to indemnify, hold harmless, and defend DIGITAL from and against any claims or lawsuits, including attorney's fees, that arise or result from the use or distribution of the software application product. Except as expressly provided herein, DIGITAL grants no implied or express 6 license under any of its patents, copyrights, trade secrets, trademarks, or any license or other proprietary interests and rights. For OpenVMS Alpha systems, the only RTL component that may be redis- tributed is DECC$CRTL.OLB. Refer to the DEC C V6.0 for OpenVMS Alpha Release Notes for instructions on redistributing this RTL component. For OpenVMS VAX systems, the only RTL components that may be redis- tributed are DECC$CRTL.OLB and AACRT060.A. Refer to the DEC C V6.0 for OpenVMS VAX Release Notes for instructions on redistributing these RTL components. HARDWARE REQUIREMENTS Processors Supported: Any Alpha system capable of running the OpenVMS Alpha Operating System Version 6.2 to 7.2 or any VAX capable of running the OpenVMS Operating System V5.5-2 to 7.2. Refer to the OpenVMS Operating System's Software Product Description (SPD 25.01.xx) for details. Disk Space Requirements (Block Cluster Size = 1): DEC C OpenVMS DEC C OpenVMS Alpha VAX Disk space 34,000 blocks 41,000 blocks required for installation: (17.4 MB) (20.5 MB) Disk space 27,000 blocks 32,000 blocks required for permanent use: (13.5 Mbytes) (16 MB) These counts refer to the maximum disk space required on the system disk. The sizes are approximate; actual sizes may vary depending on the user's system environment, configuration, and software options. 7 Memory Requirements for DECwindows Support: The minimum supported memory for this application running in a standalone DECwindows environment with both the client and server executing on that same system is 8 Mbytes. OPTIONAL HARDWARE On VAX systems, only D_,F_,and G_Floating floating point data types can be used in programs written in DEC C, which does not support the H_Floating type. (DEC C on Alpha systems supports IEEE floating point types in addition to these VAX types). Floating-point-intensive ap- plications should be run on configurations with the appropriate hard- ware support for the floating-point data types being used. Consult the base operating system Software Product Description (SPD) for the ap- propriate floating-point accelerator or other floating-point hardware appropriate for your configuration. SOFTWARE REQUIREMENTS o OpenVMS VAX Operating System, Version 5.2-2 to Version 7.2 o OpenVMS Alpha Operating System Version 6.2 to Version 7.2 SOFTWARE LICENSING This software is furnished only under a license. For more information about DIGITAL's licensing terms and policies, contact your local Compaq sales office or business partner. License Management Facility Support: These layered products support the OpenVMS License Management Facility. License units for this product are allocated on an Unlimited System Use, plus Personal and Concurrent Use basis. 8 Each Personal Use license allows one identified individual to use the layered product. Each Concurrent Use license allows any one individual at a time to use the layered product. For more information on the License Management Facility, refer to the Digital OpenVMS Operating System Software Product Description or the License Management Facility manual of the OpenVMS Operating System documentation set. CLUSTER ENVIRONMENT This layered product is fully supported when installed on any valid and licensed OpenVMScluster* configuration without restrictions. The HARDWARE REQUIREMENTS sections of this product's Software Product De- scription detail any special hardware required by this product. * OpenVMScluster configurations are fully described in the OpenVMScluster Software Product Description (SPD 29.78.xx) and include CI, Ethernet, and Mixed Interconnect configurations. OpenVMS Tailoring Classes: The following OpenVMS classes are required for full functionality of this layered product: o OpenVMS Required Save Set o Programming Support o Utilities For more information on OpenVMS classes and tailoring, refer to the OpenVMS Operating System Software Product Description (SPD 25.01.XX) 9 OPTIONAL SOFTWARE o DECset Release 12.3 for OpenVMS Alpha Systems or DECset Release 12.3 for OpenVMS VAX Systems which includes: - DIGITAL Language-Sensitive Editor/Source Code Analyzer (LSE/SCA) for OpenVMS Systems - DIGITAL Test Manager (DTM) for OpenVMS Systems - DIGITAL Performance and Coverage Analyzer (PCA) for OpenVMS Systems - DIGITAL Code Management System (CMS) for OpenVMS Systems - DIGITAL Module Management System (MMS) for OpenVMS Systems For more information on DECset Release 12.3 for OpenVMS Alpha Systems, refer to the Software Product Description (SPD 42.29.xx). For more information on DECset Release 12.3 for OpenVMS VAX Systems, refer to the Software Product Description (SPD 27.07.xx) o DEC CDD/Repository Version 5.3 for OpenVMS VAX and OpenVMS Alpha. GROWTH CONSIDERATIONS The minimum hardware/software requirements for any future version of this product may be different from the requirements for the current version. DISTRIBUTION MEDIA DEC C OpenVMS VAX ONLY: DEC C for OpenVMS VAX is available on the OpenVMS VAX Software Layered Products Library Package (QA-5G88A-H8). The library package includes media and documentation on CD-ROM. Media/documentation kits containing only the DEC C for OpenVMS VAX product are available separately. 10 The kits contain media on Magtape (9-track 1600 BPI) or TK50 Streaming Tape with hardcopy documentation. DEC C OpenVMS Alpha ONLY: DEC C for OpenVMS Alpha is available on the OpenVMS Alpha Software Products Layered Products Library Package (QA-03XAA-H8). The library package includes media and documentation on CD-ROM. A media/documentation kit containing only the DEC C for OpenVMS Alpha product is available separately (QA-MU7AA-H8). Included in the kit is CD-ROM media and hardcopy documentation. YEAR 2000 READY DEC C has been tested to ensure that the product is Year 2000 ready. SOFTWARE WARRANTY This software is provided by DIGITAL with a 90 day conformance warranty in accordance with the DIGITAL warranty terms applicable to the license purchase. ORDERING INFORMATION DEC C for OpenVMS VAX ONLY: Software Licenses: Personal Use : QL-015AA-2B Concurrent Use : QL-015AA-3B Unlimited System Use: QL-015A*-** Software Media/Documentation: QA-015AA-** Software Documentation (Hard Copy): QA-015AA-GZ Software Product Services: QT-015A*-** 11 DEC C for OpenVMS Alpha ONLY: Software Licenses: Personal Use : QL-015AA-2B Concurrent Use : QL-015AA-3B Unlimited System Use: QL-MU7A*-** Software Media/Documentation: QA-MU7AA-H8 Software Documentation (Hard Copy): QA-MU7AA-GZ Software Product Services: QT-MU7A*-** * Denotes variant fields. For additional information on available licenses, services, and media, refer to the appropriate price book. SOFTWARE PRODUCT SERVICES A variety of service options are available from Compaq. For more information, contact your local Compaq office. The previous information is valid at time of release. Please contact your local Compaq office for the most up-to-date information. [R] UNIX is a registered trademark in the United States and other countries licensed exclusively through X/Open Company Ltd. [R] Microsoft is a registered trademark of Microsoft Corporation. [TM] Visual C++ is a trademark of Microsoft Corporation. [TM] The DIGITAL Logo, Alpha, DEC, DECwindows, DIGITAL, OpenVMS, VAX, VAX RMS, and VMS are trademarks of Digital Equipment Corporation. ) 1993, 1998 Digital Equipment Corporation. All rights reserved. 12