Hi Everyone
This is my first post here.
I need help mapping a enjoyable workflow from GnuCOBOL to GCC.
I love COBOL and with GnuCOBOL, I can compile one of my programs to
intermediate C and then take the GnuCOBOL source code for the runtime
and the C outputted and hop around though it using ctags.
It is great to write something in COBOL and then to see how it is
actually implemented in the runtime in C.
I want to do the same thing with Ada.
This was my first attempt:
gcc -c -gnatDGL
but the output wasn't really that meaningful, it was basically just my
program with no ctag links into the runtime.
I tried to create a little shell script :
gcc -c -fdump-tree-original-raw ada83_syntax.adb
gcc -c -fdump-tree-gimple-raw ada83_syntax.adb
gcc -c -fdump-tree-cfg-raw ada83_syntax.adb
ctags ../*.[ch] ../ada/* *.original *.gimple *.cfg
gvim ../*.[ch] ../ada/* *.original *.gimple *.cfg tags
I was hoping that I would catch the top level C code and that it would
help. It didn't seem to.
Could anyone help with what I am trying to do?
Thanks for reading-Pat