wouter van ooijen wrote: >> And it has to be fully reentrant and thread-safe in an interrupted >> environment with no memory protection. > > What has to be "fully reentrant and thread safe"? In this context, probably the exception mechanism and the handlers of exceptions that are used in both mainline code and inside of an interrupt handler. (Unless you of course don't use exceptions in interrupts, which may be a reasonable restriction.) Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist