On 29/06/07, wouter van ooijen wrote: > exception handling requires OS support? I don't doubt it *can* be done > with OS support, but in most cases it is done totally without. Think for > yourself: it is not difficult to transform a program that uses > C-with-exception-handlers in to a plain C program. At link time, yes, but not at compile time. Add to that that the linker doesn't know about exceptions and you do have a problem that needs handling, in particular having something that manages types and that "knows" when to stop unwrapping the stack. Search for __gxx_personality and find a bunch. Not to mention the actual stack unwinding, which is iirc also a library function, not a compiler-added bit of logic. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist