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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,eb896440a3af23cf,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Joel Lepinoux" Newsgroups: comp.lang.ada Subject: large arrays Date: Tue, 9 Nov 2004 20:49:53 +0100 (CET) Organization: Cuivre, Argent, Or Message-ID: Reply-To: Joel.Lepinoux@ltpcm.inpg.fr NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: melchior.cuivre.fr.eu.org 1100029173 70094 212.85.156.195 (9 Nov 2004 19:39:33 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 9 Nov 2004 19:39:33 +0000 (UTC) To: Return-Path: X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.10) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:6093 Date: 2004-11-09T20:49:53+01:00 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