Intel i960 User Manual page 269

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

Advertisement

7
7-80
i960 Processor Compiler User's Guide
Floating-point
constant
Template Expansion
Once the compiler selects an expansion case, one of the following
sequences occurs:
If the control line contains the
error, using the first line following the
of the error message. For example, invoking the following
function as
traps(1)
asm int traps (int i)
{
% const(1) i; error;
Reached trap1
% const(2) i; error;
Reached trap2
% error;
Reached traps without 1 or 2
}
More than one line of template text following an
results in a compiler syntax error.
If the control line contains the
call to an external function using the
instruction. You can specify the name of the external function, as in
the following example:
%call my_alt_afn;
constant. For example, the expressions
, and
can evaluate to constants during
x-7
x
compilation if the value of
compile time.
is a constant floating-point value. The rules for
classifying arguments as floating-point constants
exactly parallel the rules for classifying
arguments as integer constants.
control, the compiler reports an
error
error
prints the message
Reached trap1
control, the compiler generates a
call
assembly-language
call
,
x+5-x
is a known value at
x
control line as the text
asm
:
control line
error

Advertisement

Table of Contents
loading

Table of Contents