> The return stack on the mid range PICs is limited to 8 levels. Whilst > this > is generally adequate it is difficult to keep track of the call depth. > Is > there any tool for examining a program for maximum call depth? > -- > __________________________________________ > David C Brown > While being absolutely no help on the pic 16 and 18, on the 24 and 32, I write a known pattern in the ram area between the heap pointer and the stack pointer djring initialization. I run the code for a while, then look at this area on the debugger to see how much has been overwritten. Harold --=20 FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! Not sent from an iPhone. --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .