From: Arnaud Charlet <charlet@adacore.com>
To: Patrick <patrick@spellingbeewinnars.org>
Cc: gcc@gcc.gnu.org
Subject: Re: Help with workflow
Date: Sun, 20 Dec 2020 16:54:14 +0100 [thread overview]
Message-ID: <DF6AF84E-4AA9-40E3-B659-486D8FFBB2AA@adacore.com> (raw)
In-Reply-To: <512f6576-80ac-a917-22bd-064d40f67eff@spellingbeewinnars.org>
> Thanks for responding to my post. I am not trying to generate C but to follow the intermediate representation into the Ada runtime.
>
> So let's just say we had this:
>
> with Ada.Text_IO;
> use Ada.Text_IO;
> procedure Do_Delays is
> begin
> Put_Line("Wait 5 seconds.");
> delay 5.0;
> Put_Line("Wait 2 seconds.");
> delay 2.0;
> Put_Line("Wait 7 seconds.");
> delay 7.0;
> Put_Line("That's all folks.");
> end Do_Delays;
>
> I want to follow "delay" through the intermediate representation into the Ada runtime to see where the code actually causes a pause state to occur.
Ok so you should indeed use -gnatDL and you will see these runtime calls materialize. The syntax of the .dg files is documented in gcc/ada/sprint.ads
>
> I can do this with GnuCOBOL because it compiles to C but that is not the case here and I can't seem to figure out how to follow the code as it is being translated through it's various stages and into the runtime.
>
> Thanks again-Pat
prev parent reply other threads:[~2020-12-20 15:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-20 11:52 Patrick
2020-12-20 12:24 ` Arnaud Charlet
2020-12-20 14:13 ` Patrick
2020-12-20 15:54 ` Arnaud Charlet [this message]
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=DF6AF84E-4AA9-40E3-B659-486D8FFBB2AA@adacore.com \
--to=charlet@adacore.com \
--cc=gcc@gcc.gnu.org \
--cc=patrick@spellingbeewinnars.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).