Author Topic: Results of language-enabled dependency generation  (Read 16541 times)


  • Full Member
  • ***
  • Posts: 220
    • View Profile
Results of language-enabled dependency generation
« on: May 12, 2014, 12:46:03 PM »
Today I've pushed the functionality to let the C2 compiler generate the full dependency graph for a project.
The output is in XML form and shows types, (global)variables and functions and their complete relationship.
Also the containing package is show and optionally the file they're in. (yes functions are in a single file! no
header/c-file issues here  :) )

To show how this works, I've analysed the puzzle.c2 example (
The resulting architecture is show in
Then I refactored it, by extracting some functions/vars into a separate file (really easy, just move them to
a new file, add that to recipe and done). This results in

While the example is very small, it already starts showing the potential of the language/tools.
The next step will be to integrate these into c2reto (C2 refactor tool), so that drag-n-drop refactoring
and continuous visualization is possible. I can't wait to see how that works out!