Technical data

Introduction [1]
The Cray Standard C++ Programming Environment contains both the Cray
Standard C and C++ compilers. The Cray Standard C compiler conforms to the
International Standards Organization (ISO) standard ISO/IEC 9899:1999 (C99).
The Cray Standard C++ compiler conforms to the ISO/IEC 14882:1998 standard,
with some exceptions. The exceptions are noted in Appendix B, page 157.
Note: Throughout this manual, the differences between the Cray Standard
C/C++ compilers are noted when appropriate. When there is no difference, the
phrase
the compiler refers to both compilers.
1.1 Setting up the Programming Environment
The installation and configuration of the programming environment uses a
utility called modules, which is provided and installed as part of the release
package. The /opt/ct1/doc/README file is distributed in the release package.
It contains information on initializing the module command and initializing
the environment.
The default programming environment is available to you after you have entered
the following command:
module load modules PrgEnv
If you have questions on setting up the programming environment, contact
your system support staff.
1.2 General Compiler Description
Both the Cray Standard C/C++ compilers are contained within the same
programming environment. If you are compiling code written in C, use the
cc(1) or c89(1) commands to compile source files. If you are compiling code
written in C++, use the CC(1) command.
1.2.1 Cray Standard C++ Compiler
The Cray Standard C++ compiler consists of a preprocessor, a language parser, a
prelinker, an optimizer, and a code generator. The Cray Standard C++ compiler is
invoked by a command called CC(1) in this manual, but it may be renamed at
S217936 1