On some architectures, if you declare a function with
__attribute__((__interrupt__)), it will save every register used other than the
sp (every register other than sp if the function makes a call).
| And while we're on this topic, where in K&R or the ANSI spec does it state
| that C is only to be compiled to a register machine anyway?
|
| I was just pointing out that c was designed to allow for this kind of
| flexibility; it leaves it open to the implementors to choose sensible
| calling and register conventions, etc...
Of course, in my 18+ years as a compiler author, I haven't found an abi that
was completely sensible, even when I designed it myself :-)
Of course, maybe compiler related articles should go elsewhere than the kernel
list.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu