comp.lang.ada
 help / color / mirror / Atom feed
From: 402450@cepsz.unizar.es (Jano)
Subject: Problem with large constant array (Gnat 3.15p)
Date: 26 Jan 2004 03:32:27 -0800
Date: 2004-01-26T03:32:27-08:00	[thread overview]
Message-ID: <5d6fdb61.0401260332.7b724146@posting.google.com> (raw)

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.



             reply	other threads:[~2004-01-26 11:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-26 11:32 Jano [this message]
2004-01-26 15:02 ` Problem with large constant array (Gnat 3.15p) Jano
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox