On Wed, 31 Dec 2014, Jussi Lahtinen wrote:
> Any tools or suggestions how to make easily call/flow graph from Gambas
> project?
> 

I thought about this a few days ago :-) I would imagine, given a path sPath
to a project directory, you can do

  Exec ["gbc3" "-av", sPath] To sOutput

then parse sOutput for CALL instructions and the preceding PUSH instructions
which tell you which function was called. Of course, these CALLs are made
from other functions. You feed those relations to a GraphMatrix (gb.data)
and use the Graphviz project I uploaded yesterday to the software farm to
create a Picture object from this graph.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to