setjmp: read the manual(short rerereply)

John Woods john at x.UUCP
Thu Oct 25 04:51:37 AEST 1984


The idea of having the compiler recognize setjmp and do something
helpful is interesting.  Our (CRDS) compiler has a similar stunt
which it pulls for our handle/raise routines (similar to setjmp/longjmp,
but uses named conditions; quite a bit more similar to CLU's conditions);
a function which calls handle to handle a condition will have its function-exit
code modified slightly, because the Frame-Pointer in the stack frame is
changed to point to a linked list of handled conditions.  Yes, it is fairly
grotesque, it's a hideous kludge, but it buys us a really powerful facility
at NO extra cost (and if you call before midnight tonight...).
-- 
John Woods, Charles River Data Systems, Framingham MA, (617) 626-1114
...!decvax!frog!john, ...!mit-eddie!jfw, jfw%mit-ccc at MIT-XX.ARPA



More information about the Comp.lang.c mailing list