Like Tree6Likes

Map program flow

This is a discussion on Map program flow within the C Programming forums, part of the General Programming Boards category; A simple list of all caller-callee function pairs is not sufficient to produce tracing-style output or graphs. You need more ...

  1. #16
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,425
    A simple list of all caller-callee function pairs is not sufficient to produce tracing-style output or graphs. You need more information than that
    Thanks again for all your input on this, and i see you later elaborate on the point above. It seems more clear now that the data I am using leads to difficulties in mapping because of that lack of information. The function internals are not considered and there are plans to try and combine that later yes. I am hoping to get some time at the weekend to work on this and post back.

    edit:

    If you had a third column identifying each call (say, a line number), you could include that in the above graph trivially
    I just read this. I do have the line numbers in the data, and a couple of other columns also, It had crossed my mind the line numbers might be useful, I need to have another look at the source data and will post with the extra columns info.
    Last edited by rogster001; 08-13-2014 at 04:07 PM.
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

  2. #17
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Location
    Liverpool UK
    Posts
    1,425
    I am finally getting some time to pick this up! I like the output graph in post #11 - That looks like the right reading style. The reason this is required - or being looked at is that debugging the codebase has become difficult - It has been written over a period of twenty years or more! And it has been managed in a rather 'arbitrary' way lets say..
    So it has been suggested it will be useful to be able to build some documentation computationally, reading the code as it stands, and one useful thing is to be able to map possible paths

    I checked the source data again - each row has the callee and call, the line number and the source code instruction- But that is only ever eg 'CALL MODULE B', And i also noticed the query is bringing back commented out calls, heh, ill have to have that sorted out!
    Last edited by rogster001; 3 Weeks Ago at 09:44 AM.
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    Stroustrup:
    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Question about Arrays and program flow
    By David.Mary in forum C Programming
    Replies: 12
    Last Post: 06-27-2011, 05:23 PM
  2. Program flow
    By Ducky in forum C++ Programming
    Replies: 5
    Last Post: 02-11-2010, 11:04 AM
  3. Program flow
    By Ducky in forum C++ Programming
    Replies: 4
    Last Post: 04-20-2009, 08:27 AM
  4. Simple C Program with Flow Statements
    By rory-uk in forum C Programming
    Replies: 16
    Last Post: 02-06-2008, 12:12 PM
  5. Program flow
    By Ducky in forum C++ Programming
    Replies: 22
    Last Post: 01-09-2008, 10:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21