Ic960 And Predefined Macros - Intel i960 User Manual

Processor compiler
Hide thumbs Also See for i960:
Table of Contents

Advertisement

3
3-6
i960 Processor Compiler User's Guide

ic960 and Predefined Macros

Predefined macros within a program can act as constants during execution
or as values in conditional-compilation statements. Predefined macros
include ANSI-standard macros and macros specific to the i960 processor
architecture. The
(Undefine) option can remove i960 processor-specific
U
macros but not ANSI-standard macros.
The following macros are available in accordance with the ANSI standard
for C, as described in the book, C: A Reference Manual:
__DATE__
__FILE__
The following macros are predefined by the compilation system when
invoked with the ic960 driver program:
__IC960
__IC960_VER
__i960
__LINE__
__TIME__
indicates the CTOOLS960 compilation system.
The compiler defines
__IC960
when invoked with the ic960 driver.
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
, where
is the major version number,
MmmPPPP
M
is the minor version number, and
mm
internal version number that is used to track the
patch level. So, for example, R4.5 patch level
4008 has
__IC960_VER
indicates the i960 processor environment. The
compiler defines
__i960
macro can be used to identify the parts of a
program specific to the i960 processor.
__STDC__
automatically,
is an
PPPP
defined to be 4054008.
automatically. This

Advertisement

Table of Contents
loading

Table of Contents