From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal 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.jFK6OqqKW5bkmQ4H/i1UAQ.user.gioia.aioe.org!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: How can I get this data into the .data section of the binary? Date: Tue, 16 Jun 2020 14:44:02 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: jFK6OqqKW5bkmQ4H/i1UAQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 X-Notice: Filtered by postfilter v. 0.9.2 Content-Language: en-GB Xref: reader01.eternal-september.org comp.lang.ada:59090 List-Id: On 16/06/2020 14:29, J-P. Rosen wrote: > Le 16/06/2020 à 14:59, Luke A. Guest a écrit : >> Which misses the point entirely of my original issue, and complete >> hatred of this part of Ada. Literally, if something can be compiled to >> be in the data section, it should be. > > I understand your problem, but this is a compiler issue, not a language > issue. There is no such thing as a "data section" in a high level, > machine independent, definition of a programming language... > According to 10.2.1 it should be possible: is important that programs be able to declare data structures that are link-time initialized with aggregates, string_literals, and concatenations thereof. etc. Even adding pragma Preelaborable_Initialization (x) for each of the types, doesn't do anything.