From: Patrick <patrick@spellingbeewinnars.org>
To: gcc@gcc.gnu.org
Subject: Help with workflow
Date: Sun, 20 Dec 2020 06:52:40 -0500 [thread overview]
Message-ID: <ce8ed529-e714-ea72-780e-9810897008f4@spellingbeewinnars.org> (raw)
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
next reply other threads:[~2020-12-20 11:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-20 11:52 Patrick [this message]
2020-12-20 12:24 ` Arnaud Charlet
2020-12-20 14:13 ` Patrick
2020-12-20 15:54 ` Arnaud Charlet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ce8ed529-e714-ea72-780e-9810897008f4@spellingbeewinnars.org \
--to=patrick@spellingbeewinnars.org \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).