> > 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? 'and when doing that' was reffering to 'the compiler *forcing* you not to use recursion', as in forcing you to adhere to the C syntax (or whatever other language's syntax). Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist