Turbo C

John F. Haugh II jfh at rpp386.UUCP
Fri Jul 22 10:37:57 AEST 1988


In article <16577 at brl-adm.ARPA> C08922DB%WUVMD.BITNET at cunyvm.cuny.edu writes:
>I am interested in understanding the structure of the function type
>"interrupt" in Turbo C. Basically, what is special about this function
>definition, and what approaches can be used in other compilers to simulate
>this feature? Optimum-C is what I'm using.

it declares the function as being called at interrupt time.  this means
that the function can have no stray side effects, such as not restoring
a modified register, and that the function must be ended with a return
from exception rather than a short or long return from subroutine call.

- john.
-- 
John F. Haugh II                 +--------- Cute Chocolate Quote ---------
HASA, "S" Division               | "USENET should not be confused with
UUCP:   killer!rpp386!jfh        |  something that matters, like CHOCOLATE"
DOMAIN: jfh at rpp386.uucp          |             -- with my apologizes



More information about the Comp.lang.c mailing list