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,269b6d3e3954b114 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-26 14:18:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!enst!enst.fr!not-for-mail From: sk Newsgroups: comp.lang.ada Subject: Re: GNAT internals question Date: Wed, 26 Jun 2002 16:15:21 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3D19AA89.8FAE0ECA@ktc.com> <08c501c21d12$82b87a20$6400000a@dhoos> 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 1025126282 12671 137.194.161.2 (26 Jun 2002 21:18:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 26 Jun 2002 21:18:02 +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.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:26722 Date: 2002-06-26T16:15:21-05:00 Hi, "David C. Hoos, Sr." > ... not a single instance of ada_main___elabs. Sorry, I mis-remembered, it is "ada_main___elabb" I am refering to. So far my experience is also that it is not called but that doesn't mean that it never is used. It is difficult for me to describe what I am asking, but ... procedure Nothing is begin null; end Nothing; The pragmas are to remove all external references and dependencies on the GNAT runtime. Linux shell commands : gnatmake -c -v nothing gnatbind -v nothing gcc -v -c -S b~nothing.adb producing "b~nothing.s" which contains the elusive "ada_main___elabb" (AMEB an acceptable acronym ?). The GNAT Ada main function has a structure of adainit call nothing adafinal I believe that when circumstances require, AMEB will both contain useful code and be called as part of the final binary. Isolating where it is called from is my goal. Prior to "adainit", from "adainit" or between "adainit" and the nothing call etc. AMEB might be a permanent and "legacy" stub, but I doubt it. I suspect that some features of Ada and GNAT will populate this function with useful code and call it when necessary. Trying to discover the circumstances. Thanks :-) -- ------------------------------------- -- Merge vertically for real address ------------------------------------- s n p @ t . o k i e k c c m -------------------------------------