Has anyone written a tool to help track down recursive function calls? I'm sure many of us have seen the dreaded C51 linker warning above recursive calls. My problem: I just spent 30 minutes sifting through someone elses code trying to find the actual culprit that produced the recursive call linker warning (no function pointers in the code, so I was pretty sure the warning was real). It turned out to be about 4 or 5 function calls deep pass the function it warned about. Not a difficult task to do by hand, but.... I'm sure that the map file can be used to create a call tree, but I believe you'd have to create the call tree manually. It seems that that it wouldn't be that difficult to write a program that will parse the map file and tell you all the functions involved in a specified recursively called function. If it doesn't exist, maybe I'll be bored enough to actually write it someday :) -nelson
What about the call/caller trees in the uVision Browser? I'm still using uVision 1.32, and probably won't be switching soon (legacy code work). I didn't think uV2 would have that feature, so I forgot to mention what version I was using. There are plenty of "reverse engineering" tools on the market which will "map" your code - I think StarBase (formerly Premia, the makers of CodeWright) do one? Hmmmm... maybe one of the many CodeWright features I still have to learn? I just started using CodeWright about 2 or 3 weeks ago, and still have lots to learn.