> > I know I should not let it happen, but I'm curious... > > In Hitech C code on a PIC (or others) what happens if main() exits? > > > mplab C18 runs your main function in a loop so if it exits it just gets c= alled > again. The C30 startup code resets the processor if main() exits. --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .