Technical data

Cray Standard C/C++ Reference Manual
required by the ISO C++ standard, but not the
ISO C standard.
7.2 Macros Based on the Host Machine
The following macros provide information about the environment running
on the host machine:
M
acro Description
__unix Defined as 1 if the operating system is UNIX.
unix Defined as 1 if the operating system is UNIX. This
macro is not defined in strict-conformance mode.
_UNICOS Defined as the integer portion of the major
release level of the current UNICOS release (for
example, 9).
7.3 Macros Based on the Target Machine
The following macros provide information about the characteristics of the target
machine:
M
acro Description
cray Defined as 1 on all UNICOS and UNICOS/mk
systems. This macro is not defined in
strict-conformance mode.
CRAY Defined as 1 on all UNICOS and UNICOS/mk
systems. This macro is not defined in
strict-conformance mode.
_CRAY Defined as 1 on all UNICOS and UNICOS/mk
systems.
CRAY1 Defined as 1 on all UNICOS systems; if the
hardware is any other machine type, the macro
is not defined. This macro is not defined in
strict-conformance mode.
_CRAY1 Defined as 1 on all UNICOS systems; if the
hardware is any other machine type, the macro
is not defined.
118 S217936