At 22.43 2011.12.11, you wrote: >Hi All. > >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? > >Dave On the PIC32 C compiler, it enters an infinite loop ( like while(1); ). PS: I recall that another version (dunno if of PIC32 or PIC24) resetted the= MPU instead. I would suggest you to look at the disassembled code generated by the compi= ler. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .