piclist@xargs.com wrote: >> Well, the thing is that a static call tree does work "enough like call and >> return" only if you don't use a few standard features, like recursion (not >> really a favorite of mine in embedded systems) and function pointers (which >> I'm sometimes missing). > > Function pointers work fine with a compiled stack, at least on > Hi-Tech. I don't think the feature is implemented on C18, though. They kind of work (with HiTech compilers PICC/PICC18), but they are limited in their functionality. AFAIK, no two pointers may refer to functions with the same "signature". This makes sense, as calculating a static call stack becomes practically impossible if you allow normal function pointer functionality (with all the "usual" tricks like casting integers to function pointers :) Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist