From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7c47766edd175974 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-01 17:32:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!teaser.fr!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: How do package body initializers get run in GNU Ada? Date: Fri, 01 Nov 2002 19:28:16 -0600 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3DC31EBB.2050809@math.jpl.nasa.gov> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1036200723 54356 137.194.161.2 (2 Nov 2002 01:32:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 2 Nov 2002 01:32:03 +0000 (UTC) Return-Path: X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19-4.3mdk i686) X-Accept-Language: en Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:30302 Date: 2002-11-01T19:28:16-06:00 Hi, Van Snyder > 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 -------------------------------------