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!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: STM32F4 GNAT Run Time System - roadmap Date: Wed, 10 Jun 2015 18:47:19 +0100 Organization: A noiseless patient Spider Message-ID: References: <7cf60ab3-065e-48c8-b6b1-b3fe01a088f4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="2c7d8f71a176d2eaa78ec9fbd86e1d4a"; logging-data="23102"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xEI6H+buuouE5bEEB1LezABH5ZzTidsA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:BTXD1e+xbGYp2hUiJB5n7JAUAz8= sha1:q00brStmoRGzqJTTbeKBauK+0PM= Xref: news.eternal-september.org comp.lang.ada:26258 Date: 2015-06-10T18:47:19+01:00 List-Id: jan.de.kruyf@gmail.com writes: > on the matter of bug 66205: > ------- > if not Suppress_Standard_Library_On_Target then > WBI (" Is_Elaborated : Boolean := False;"); > end if; > ------- > This ties with the behaviour I get on 4.7.4 > When Standard_Library is not suppressed it wants to load some Handler > and initialize a handful of variables. So for mixed language mode with > minimal runtime and a foreign linker I have to suppress the standard > library, so 'adainit' purely does the elaboration of the stuff I wrote > (be it program or runtime) As I said: with it, adainit does a few > things more. These bugs were about including finalization in the RTS. I guess there's some work to be done on exiting a kernel module; whether that's something that relates to Ada.Finalization is a different matter! And I'm not clear what Suppress_Standard_Library_On_Target means .. oh, it's about standard exception data. I had to include it in my RTS because some packages needed it, but it's only needed if the user code calls the features involved (e.g. streams, containers). I think the writeup in [1] is slightly misleading: Suppress_Standard_Library : Boolean; -- If this flag is True, then the standard library is not included by -- default in the executable (see unit System.Standard_Library in file -- s-stalib.ads for details of what this includes). This is for example -- set True for the Zero Footprint case, where these files should not -- be included by default. -- -- This flag has some other related effects: -- -- The generation of global variables in the bind file is suppressed, -- with the exception of the priority of the environment task, which -- is needed by the Ravenscar run-time. -- -- The generation of exception tables is suppressed for front end -- ZCX exception handling (since we assume no exception handling). -- -- The calls to __gnat_initialize and __gnat_finalize are omitted -- -- All finalization and initialization (controlled types) is omitted -- -- The routine __gnat_handler_installed is not imported At least the part about "All finalization and initialization (controlled types) is omitted" iw wrong; it just doesn't work! [1] http://docs.adacore.com/gnathie_ug-docs/html/gnathie_ug/gnathie_ug/the_gnat_configurable_run_time_facility.html