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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,69431b06fe9a3239 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!a26g2000vbo.googlegroups.com!not-for-mail From: Lucretia Newsgroups: comp.lang.ada Subject: Re: How do I disable elaboration code on this Date: Mon, 11 Apr 2011 01:54:18 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6bca8b26-152f-482c-95c0-1abf88b6b29b@a26g2000vbo.googlegroups.com> References: <58bc4fb4-5f6a-48d6-9c98-0dde7ac619df@p16g2000vbo.googlegroups.com> <4da2176e$0$6977$9b4e6d93@newsspool4.arcor-online.net> <93b20b91-03ed-48d2-87b6-a109127a5a4f@l18g2000yql.googlegroups.com> NNTP-Posting-Host: 92.41.251.198 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1302512058 5462 127.0.0.1 (11 Apr 2011 08:54:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 11 Apr 2011 08:54:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a26g2000vbo.googlegroups.com; posting-host=92.41.251.198; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux armv7l; en-GB; rv:1.9.2.3pre) Gecko/20100723 Firefox/3.5 Maemo Browser 1.7.4.8 RX-51 N900,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19722 Date: 2011-04-11T01:54:18-07:00 List-Id: The problem has nothing to do with the linker, I'm using binutils and gnat that I'e built myself. The problem is that GNAT is generating elaboration code where it is not allowed, i.e. code that 1) initialises the array to 0 and 2) code that the copies function addresses into the array. If this cannot work then I'm surprised and I'll be forced to use separate constants as noted by Rolf. It just seems like overkill having to specify each element separately when an array is the right structure ffor the job. And in other languages like C it doesn't do the same thing. You can specify a static constant array and it'll initialise it with the right data. Luke