comp.lang.ada
 help / color / mirror / Atom feed
From: sk <noname@myob.com>
Subject: Re: How do package body initializers get run in GNU Ada?
Date: Fri, 01 Nov 2002 19:28:16 -0600
Date: 2002-11-01T19:28:16-06:00	[thread overview]
Message-ID: <mailman.1036200722.16633.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3DC31EBB.2050809@math.jpl.nasa.gov

Hi,

Van Snyder <vsnyder@math.jpl.nasa.gov>
> <snip>

This is a quick response and off the top of my head, so
details might be bad ...

Firstly, if you mean GNAT (?) by GNU Ada, the linker is
on GNU/Linux is not an issue in the elaboration code.

To explore what happens (if you are not referring to GNAT,
sorry, this is irrelevent) build a sample dummy package ...

package dummy is

    procedure Initialize;

begin
    Initialize;
end dummy;

... and compile with the "-s" option to produce assembly
listing and review. 
... or compile normally and use "objdump" to look at the
".o" file structure.

Then build an Ada main with the above options and look at
the produced "*.s" or "*.o" files

Along with this, look closely at the GNAT users guide,
specifically the binder section which shows how an Ada
"main" is built.

Sorry for not much detail, and it can become laborious 
finding how the code interacts, but it does provide some
insight which might be useful to you.

-- 
-------------------------------------
-- Merge vertically for real address
-------------------------------------
s n p @ t . o
 k i e k c c m
-------------------------------------



  parent reply	other threads:[~2002-11-02  1:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-02  0:39 How do package body initializers get run in GNU Ada? Van Snyder
2002-11-02  1:23 ` Jeffrey Carter
2002-11-02  1:28 ` sk [this message]
2002-11-04 15:20   ` Stephen Leake
2002-11-05  1:03     ` sk
2002-11-02 16:00 ` Robert A Duff
2002-11-03  2:45 ` David Marceau
2002-11-03 11:37 ` Romanov
2002-11-03 20:14   ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox