C++ User's Guide HomeContentsPreviousNextIndex


Chapter 1

The C++ Compiler

This chapter provides a brief conceptual overview of SunTM C++ and the C++ compiler.

1.1 Standards Conformance

The C++ compiler (CC) supports the ISO International Standard for C++, ISO IS 14882:1998, Programming Language--C++. The README file that accompanies the current release describes any departures from requirements in the standard.

On SPARCTM platforms, the compiler provides support for the optimization-exploiting features of SPARC V8 and SPARC V9, including the UltraSPARCTM implementation. These features are defined in the SPARC Architecture Manuals, Version 8 (ISBN 0-13-825001-4), and Version 9 (ISBN 0-13-099227-5), published by Prentice-Hall for SPARC International.

In this document, "Standard" means conforming to the versions of the standards listed above. "Nonstandard" or "Extension" refers to features that go beyond these versions of these standards.

The responsible standards bodies may revise these standards from time to time. The versions of the applicable standards to which the C++ compiler conforms may be revised or replaced, resulting in features in future releases of the Sun C++ compiler that create incompatibilities with earlier releases.

1.2 Operating Environments

The C++ compiler (CC) integrates with other Sun development tools, such as Sun WorkShopTM and the C compiler. The Sun C++ compiler and its runtime library are part of Sun Visual WorkShopTM C++. You can use these components to develop threaded applications in multiprocessor SolarisTM 2.6, Solaris 7, and in Solaris 8 operating environments.


Note – For Solaris 7, the name of the operating environment is Solaris 7, but code and path or package path names might use Solaris 2.7 or SunOSTM 5.7. Always follow the code or path as it is written.

The Sun WorkShop 6 C++ compiler is available in the Solaris 2.6, Solaris 7, and Solaris 8 operating environments on SPARC and IA devices.


Note – Features that are unique to a particular operating environment or hardware platform are so indicated. However, most aspects of the compilers on these systems are the same, including functionality, behavior, and features. The multiprocessor features are available as part of the Sun WorkShop on the SPARC platform with Solaris 2.6, Solaris 7, and Solaris 8 software, and require a Sun WorkShop license.

See the C++ README files for details.

1.3 READMEs

The READMEs directory contains files that describe new features, software incompatibilities, bugs, and information that was discovered after the manuals were printed. In a default installation, the README files are in /opt/SUNWspro/READMEs.

The README files for all compilers are easily accessed by the -xhelp=readme command-line option. For example, CC -xhelp=readme displays the C++ README file directly.

To access the HTML version of a README, in your Netscape Communicator 4.0 or compatible version browser, open the following file:

/opt/SUNWspro/docs/index.html

(If your Sun WorkShop software is not installed in the /opt directory, ask your system administrator for the equivalent path on your system.) Your browser displays an index of Sun WorkShop 6 HTML documents. To open a README, find its entry in the index, then click its title.

1.4 Man Pages

Online manual (man) pages provide immediate documentation about a command, function, subroutine, or collection of such things.

You can display a man page by running the command:

example% man topic

Throughout the C++ documentation, man page references appear with the topic name and man section number: CC(1) is accessed with man CC. Other sections, denoted by ieee_flags(3M) for example, are accessed using the -s option on the man command:

example% man -s 3M ieee_flags

1.5 Licensing

The C++ compiler uses network licensing, as described in the Sun WorkShop Installation and Licensing Reference.

If you invoke the compiler, and a license is available, the compiler starts. If no license is available, your request for a license is put in a queue, and your compiler continues when a license becomes available. A single license can be used for any number of simultaneous compiles by a single user on a single machine.

To run C++ and the various utilities, several licenses might be required, depending on the package you have purchased.

1.6 New Features of the C++ Compiler

The Sun WorkShop 6 C++ compiler offers the following new features:

The following features were introduced in version 5.0 of the C++ compiler:

The C++ compiler package also includes:

1.7 C++ Utilities

The following C++ utilities are now incorporated into traditional UNIX® tools and are bundled with the UNIX operating system:

See Analyzing Program Performance With Sun WorkShop and associated man pages for further information on these UNIX tools.

1.8 Native-Language Support

This release of C++ supports the development of applications in languages other than English, including most European languages and Japanese. As a result, you can easily switch your application from one native language to another. This feature is known as internationalization.

In general, the C++ compiler implements internationalization as follows:

Variable names cannot be internationalized and must be in the English character set.

You can change your application from one native language to another by setting the locale. For information on this and other native-language support features, see the operating environment documentation.


Sun Microsystems, Inc.
Copyright information. All rights reserved.
Feedback
Library   |   Contents   |   Previous   |   Next   |   Index