i960 Processor Compiler User's Guide
7-32
7
Default
The compiler does not replace the function call with the function's body.
The
#pragma inline has effect at optimization level 1 and higher.
Chapter 11 describes optimization levels in more detail.
Discussion
Use #pragma inline to replace a function call with the function body
expanded at the place of the function call. Expanding a function inline
increases the code size but decreases the execution time.
Note that a function that accepts a variable number of arguments cannot
be expanded inline.
#pragma interrupt
#pragma interrupt [ [(]
function
[,...] [)] ]
#pragma nointerrupt [ [(]
function
[,...] [)] ]
function
specifies the interrupt handler.
Specifies an interrupt handler.
Default
A function is not an interrupt handler.
Discussion
Use
#pragma interrupt to declare a function as an interrupt handler.
The
interrupt pragma must precede the function definition. If no
function is specified, the pragma applies to all functions defined following
the pragma.
For interrupt handlers, the compiler tries to use global and floating-point
registers only for a call. If the function uses any global or floating-point
registers, the compiler preserves the registers. For any call, the compiler
saves all registers except
g8 through g11. A register in the range g8
through g11 is saved only if it may be changed in the called function.