On Sun, 11 Dec 2011, Dave Harris wrote: > In Hitech C code on a PIC (or others) what happens if main() exits? The Hi-Tech compilers branch to the beginning of the startup code if you "return" from main(). main() is not actually called by the startup code, so you can't "return" from it. -- John W. Temples, III --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .