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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:ae9:e907:: with SMTP id x7mr3787047qkf.298.1578754966255; Sat, 11 Jan 2020 07:02:46 -0800 (PST) X-Received: by 2002:a9d:74c4:: with SMTP id a4mr7210641otl.119.1578754966050; Sat, 11 Jan 2020 07:02:46 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no10239701qtd.0!news-out.google.com!w29ni731qtc.0!nntp.google.com!g89no10239696qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 11 Jan 2020 07:02:45 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=70.109.61.2; posting-account=QF6XPQoAAABce2NyPxxDAaKdAkN6RgAf NNTP-Posting-Host: 70.109.61.2 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Importance of GNAT.Source_Info From: Jere Injection-Date: Sat, 11 Jan 2020 15:02:46 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57822 Date: 2020-01-11T07:02:45-08:00 List-Id: On Wednesday, January 8, 2020 at 11:38:28 AM UTC-5, Simon Wright wrote: > > > > I'm working on a baremetal RTS and while looking at > > https://wiki.osdev.org/Ada_Bare_bones, one of the files it suggests is > > part of the minimum set of RTS files is g-souinf.ads which contains > > the package GNAT.Source_Info. > > > > Does anyone know what part of the compiler requires this? So far I > > haven't had GNAT barf at me for not having it while compiling the > > files I do have, but I don't want to leave it out if it is indeed > > necessary for something. I didn't see any info on why it is > > necessary. It's definitely useful in that it gives a lot of compile > > time values, but not sure why it would be a "required" file. I'm > > assuming something will break without it, but don't know what. > > I wouldn't have thought it'd be "required" either. If you want what it > provides, great, but there's no cost for actually 'with'ing it, because > it's preelaborated & (as someone has pointed out) all the subprograms > are intrinsic. I might still include it. My OCD doesn't want to put too much GNAT specific stuff in if I don't need to, but then, I have to use GNAT specific stuff because it is an RTS for GNAT, so I am probably just being silly here and I shouldn't worry about it and just add it in too.