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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8acb564a49b59a90,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-26 03:32:27 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 402450@cepsz.unizar.es (Jano) Newsgroups: comp.lang.ada Subject: Problem with large constant array (Gnat 3.15p) Date: 26 Jan 2004 03:32:27 -0800 Organization: http://groups.google.com Message-ID: <5d6fdb61.0401260332.7b724146@posting.google.com> NNTP-Posting-Host: 80.81.106.18 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1075116747 20364 127.0.0.1 (26 Jan 2004 11:32:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 26 Jan 2004 11:32:27 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:4804 Date: 2004-01-26T03:32:27-08:00 List-Id: Hi everybody, I'm trying to compile a quite large constant array, generated by another tool (namely, awsres from AWS). The array has this form: package Example is use Ada.Streams; Content : aliased constant Stream_Element_Array := (137, 80, 78, 71, 13, 10, 26, 10, 0, 0, 0, 13, 73, 72, 68, 82, 0, 0, 0, 14, 0, 0, 0, 14, 8, 3); end Example; Only that it has about 4.4 millions of elements. The spec file is about 25mB in size. I'm using a computer with 384mB (win NT) so it may be part of the problem. What happens is that gnat1.exe gets as many as 650 mB of virtual memory and, after half an hour, it still hasn't finished. I wonder if a computer with enough memory to not swap could finish in a reasonable time, or if there is some hidden N^2 ruining the compilation memory usage/time. I've tried with a plain gnatmake without switches to not use any extra feature but it behaves the same. Any experiences on this? Kind regards, A. Mosteo.