Wouter van Ooijen wrote: >> Now I may just rationalize why I don't need what I don't have, but I >> really think I would seriously try to avoid recursion even if I had it >> available. > > But it would be better if the compiler forced you to avoid it :) That's exactly what it is doing :) > And when doing that, it could caculate your stack usage, and check it > against the stack/ram limits of the chip (and maybe take evasive action > on the stack aspect). Not sure you made a joke here, but if not -- how would the compiler calculate the stack usage of a recursive algorithm that operates on an ADC input? Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist