a use for &LABEL

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Fri Sep 28 07:09:20 AEST 1984


It is unlikely that you will like the results of an interrupt jumping
into the middle of your C code.  For one thing, this bypasses the stack
frame set-up so your auto variables will be stolen from whatever stack
frame happens to be set at interrupt time.  The preferred way to handle
interrupts with C functions is to write a little assembly-language
interface that saves all registers etc. and calls the C function with
valid arguments, then restores the machine state before RTI.  Your Manx
C system includes an assembler that can be used for this.



More information about the Comp.lang.c mailing list