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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,14db193838d387d7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-16 10:47:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!npeer.de.kpn-eurorings.net!newsfeed.stueberl.de!proxad.net!usenet-fr.net!enst.fr!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: what are the created ~b files when using -g with gnatmake Date: Wed, 16 Jul 2003 12:45:50 -0500 Organization: ENST, France Message-ID: References: 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 1058377592 8116 137.194.161.2 (16 Jul 2003 17:46:32 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 16 Jul 2003 17:46:32 +0000 (UTC) To: "srouse" , Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:40347 Date: 2003-07-16T12:45:50-05:00 ----- Original Message ----- From: "srouse" Newsgroups: comp.lang.ada To: Sent: Wednesday, July 16, 2003 10:59 AM Subject: what are the created ~b files when using -g with gnatmake > when I do a gnatmake with the -g option for debugging it creates new > ~b*.adb, ~b*.ads, ~b*.ali, and ~b*.o files. I was wondering what > these files are and how they are used when debugging the ada program? First, let me say that these files are _not_ named "~b*.adb, ~b*.ads, ~b*.ali, and ~b*.o", but rather "b~*.adb, b~*.ads, b~*.ali, and b~*.o". Next, let me say that these files are created regardless of whether the -g option is used. What is different with the -g option is that the files are not deleted at the completion of the gnatmake process, because they are potentially needed when debugging. The best way to find out what things are for in the GNAT compilation system is to read the documentation provided with GNAT. Here is a pertinent excerpt from that documentation: If no errors are detected, the binder produces a main program, in Ada by default, that contains calls to the elaboration procedures of those compilation unit that require them, followed by a call to the main program. This Ada program is compiled to generate the object file for the main program. The name of the Ada file is `b~xxx.adb' (with the corresponding spec `b~xxx.ads') where xxx is the name of the main program unit. > > Thanks for the help! > Shawn > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada >