I am trying to create an application which should do the following:
1. It should parse an executable C/C++ program and insert appropriate comments in that at appropriate positions... like: //main starts....//call to fun1...etc.
2. It should create a tree/ control flow graph of the application
3. It should provide the dynamic information about the input like...how much it takes to execute and which loop/function takes the most time etc etc.
1 and 2 I am able to achieve by parsing the input program using flex and bison....third point is a problem..cause I dont have any idea how to do it.....shall I attach a debugger to my application..if yes then shall I create it or I can attach any one...or can I use the information from a custom build debugger...plz help....