gcc960 Compiler Driver
2-7
2
The following macros are available in accordance with the ANSI standard
for C, as described in the book, C: A Reference Manual:
__DATE__ __FILE__ __LINE__ __TIME__ __STDC__
The following macros are predefined by the compilation system when
invoked with the gcc960 driver program:
__GCC960_VER is defined to a decimal number that can be used
to check the version number of the compiler.
The number is expressed in decimal as
MmmPPPP
, where
M
is the major version number,
mm
is the minor version number, and
PPPP
is an
internal version number that is used to track the
patch level. So, for example, R5.0 patch level
4032 have
__GCC960_VER defined to be
5004032.
__i960 indicates the i960 processor environment. The
compiler defines
__i960 automatically. This
macro can be used to identify the parts of a
program specific to the i960 processor.
__i960
xx
indicates the i960 processor instruction set in
use. The compiler automatically defines the
__i960
xx
macro. The
xx
is SA, SB, KA, KB, CA,
CF, JA, JF, JD, HA, HD, HT, or RP. Definition of
xx
depends on the specific i960 processor
instruction set specified by the
A (Architecture)
option.
__PIC indicates that the generated code is position-
independent. The
mpic
(Generate-for-position-independent-code) option
causes the
__PIC macro to be defined.
__PID indicates that the generated data is position-
independent. The
mpid
(Generate-for-position-independent-data) option
causes the
__PID macro to be defined.