EasyManua.ls Logo

Intel i960 - Pragma Isr

Intel i960
347 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i960 Processor Compiler User's Guide
7-34
7
#pragma isr
Specifies routines to be compiled as interrupt service routines (isr's). The
syntax is:
#pragma isr [(]
function_name
[ [,]
function_name
]...[)]
When a routine specified as an interrupt service routine is compiled, the
compiler generates code so that registers
g0-g15 have the same values on
exit that they had when entering the function. In addition, the code
generated for the routine makes no assumptions about register
g14's value
on entry. By guaranteeing these registers' values and not assuming
g14 to
be zero,
#pragma isr ensures that the routine's address can be placed
directly in the interrupt vector table, and the state of the processor are the
same at routine exit as it was at routine entry.
#pragma optimize
#pragma optimize [(] [
identifier
=]"
string
"[,]
[
identifier
= "
string
"]... [)]
Enables or disables optimizations. If specified, the identifier denotes a
function with which the
#pragma optimize string is to be associated.
The string is a comma-separated list of optimizations to enable or disable.
Currently recognized optimizations are:
tce enable tail-call-elimination optimization
notce disable tail-call-elimination optimization
lp enable leaf-procedures optimization
nolp disable leaf-procedures optimization
If no function is specified then this pragma applies to the rest of the file.
Any optimizations other than those recognized above are ignored.

Table of Contents

Related product manuals