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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.8dY8omnix++EB5/QBRk4Sw.user.gioia.aioe.org!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Importance of GNAT.Source_Info Date: Wed, 08 Jan 2020 16:38:26 +0000 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: 8dY8omnix++EB5/QBRk4Sw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) Cancel-Lock: sha1:Ztnplglj8XNs9jG15L1ieGgGono= X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:57805 Date: 2020-01-08T16:38:26+00:00 List-Id: Jere writes: > 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.