comp.lang.ada
 help / color / mirror / Atom feed
* large arrays
@ 2004-11-09 19:49 Joel Lepinoux
  2004-11-09 23:55 ` Jeff C r e e.m
  0 siblings, 1 reply; 8+ messages in thread
From: Joel Lepinoux @ 2004-11-09 19:49 UTC (permalink / raw)
  To: comp.lang.ada

Hello,
for the first time I need to declare a large array (>1Go), here are my
structures:


  type Site         is array (1..3) of Short_Short_Integer; -- size=24 bits
  type Site_Matrix  is array (Integer range <>, Integer range <>) of Site;

-- maximum allowed size, about 245Mo
  My_Array: Site_Matrix(1..1_132_000,1..72);


If I increase the first upper bound (1_132_000) I get a warning from gnat
(3.15p) comfirmed at runtime: STORAGE_ERROR: object too large

This means that "My_Array" is too large but of course I can declare a
second array of same dimensions and so one, i.e. it is not a problem of
total space (2Go available) neither of bound out of range, etc.

I would be glad to understand the origin of this limit and it would be
great if somebody could tell me how to extend it.
Thanks in advance
Joel





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-11-11  0:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-09 19:49 large arrays Joel Lepinoux
2004-11-09 23:55 ` Jeff C r e e.m
2004-11-10  3:45   ` Dr. Adrian Wrigley
2004-11-10  3:57     ` Brian May
2004-11-10 12:47     ` Jeff C r e e.m
2004-11-10  5:03   ` Steve
2004-11-10 12:41     ` Jeff C r e e.m
2004-11-11  0:07   ` Randy Brukardt

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