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=-0.1 required=5.0 tests=AXB_XMAILER_MIMEOLE_OL_024C2, 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 06:07:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!freenix!enst!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: GNAT internals question Date: Wed, 26 Jun 2002 08:07:59 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3D19AA89.8FAE0ECA@ktc.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1025096822 11329 137.194.161.2 (26 Jun 2002 13:07:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 26 Jun 2002 13:07:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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:26713 Date: 2002-06-26T08:07:59-05:00 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" To: 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 > >