From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: GNAT internals question
Date: Wed, 26 Jun 2002 08:07:59 -0500
Date: 2002-06-26T08:07:59-05:00 [thread overview]
Message-ID: <mailman.1025096822.8540.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3D19AA89.8FAE0ECA@ktc.com
Interesting.
I looked at all of my object files containing Ada_Main packages --
i.e. all b~*.o files -- and found only ada_main___elabb -- not a
single instance of ada_main___elabs.
Can you supply an example?
I suspect that the ada_main_elabb is never called, because looking
at the source code for the Ada_Main packages, I could see nothing
that would require elaboration code to be generated. The compiler
probably always generates a stub for body elaboration, but never
calls it because it would do nothing.
----- Original Message -----
From: "sk" <sknipe@ktc.com>
To: <comp.lang.ada@ada.eu.org>
Sent: June 26, 2002 6:50 AM
Subject: GNAT internals question
> Hi,
>
> I have recently been looking at the code generated by
> the "gcc -S ..." assembly listing of the binding file
> for an Ada main and a "phantom" function "ada_main___elabs"
> appears.
>
> Using "objdump" to view the final object code, the function
> also appears.
>
> However, I cannot find where and under what circumatances
> "ada_main___elabs" is referenced or called.
>
> Does anyone have experience of "ada_main___elabs" and be
> willing to share this information ?
>
> Also, any knowledge or "gotchas" concerning the GNAT
> "pragma No_Run_Time" ?
>
> --
> -------------------------------------
> -- Merge vertically for real address
> -------------------------------------
> s n p @ t . o
> k i e k c c m
> -------------------------------------
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
>
next parent reply other threads:[~2002-06-26 13:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3D19AA89.8FAE0ECA@ktc.com>
2002-06-26 13:07 ` David C. Hoos, Sr. [this message]
[not found] ` <08c501c21d12$82b87a20$6400000a@dhoos>
2002-06-26 21:15 ` GNAT internals question sk
[not found] ` <3D1A2EE9.5BC51A23@myob.com>
2002-06-26 21:36 ` sk
2002-06-26 21:47 ` David C. Hoos
2002-06-26 22:28 ` sk
[not found] ` <3D1A400A.D0DC919A@myob.com>
2002-06-27 3:02 ` David C. Hoos, Sr.
[not found] ` <099a01c21d87$2867b1b0$6400000a@dhoos>
2002-06-27 6:40 ` sk
2002-06-26 11:50 sk
2002-06-26 15:15 ` Stephen Leake
2002-06-26 21:21 ` sk
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox