Jump to content

Extract data dependency graph from source code

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
hans

hans

    Newbie

  • Members
  • Pip
  • 1 posts
Hi all. Do you have any idea how to extract the data dependency graph from the source code (or assembly code) of a program?

Thanks very much

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
The first thing you would need to do is write a parser for the source language.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,715 posts
I would think that it'd be easier to parse machine code to form a graph, but it'd be more difficult to relate the various memory locations with higher-level data structures. Unless you have a second pass that consolidates the graph or something like that.