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,WEIRD_PORT autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f479f3331eef5353 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Size of Vector limited to 1024 MB of Heap Size Date: Wed, 25 Jun 2008 18:26:31 +0100 Message-ID: References: <6ccu94F3et2evU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net 6MvT+PiNivB+YDulmjK9jQMGGO64yl9avwxXMNMdQYAW+nARr5 Cancel-Lock: sha1:MM2+CNDzL/bUupH4fKJ4zg0Ca+g= User-Agent: Microsoft-Entourage/12.11.0.080522 Thread-Topic: Size of Vector limited to 1024 MB of Heap Size Thread-Index: AcjW6JuEUWEC86HIn0Ocb8+BklFUGg== Xref: g2news1.google.com comp.lang.ada:879 Date: 2008-06-25T18:26:31+01:00 List-Id: On 25/06/2008 16:13, in article g3tna8$f9c$1@aioe.org, "Dennis Hoppe" wrote: > Hi Peter, > > unfortunately, your code provided below produces the same behaviour: > > heap(9830) malloc: *** mmap(size=2147487744) failed (error code=12) > *** error: can't allocate region > *** set a breakpoint in malloc_error_break to debug > > raised STORAGE_ERROR : heap exhausted > > > Another point is, that I run actually a 64 bit OS (Mac OS X 10.5), > so I tried to compile the source code explicitly with the 64 bit flag > > gcc -gnato -m64 -c heap.adb, > > but I got the following errors: > > heap.adb:10:04: instantiation error at a-convec.ads:330 > heap.adb:10:04: alignment for "Vectort31b" must be at least 8 > heap.adb:10:04: instantiation error at a-convec.ads:330 > heap.adb:10:04: alignment for "Vectorb36b" must be at least 8 > > Line 10 is: > > package Generic_Vector is new Ada.Containers.Vectors > (Element_Type => Integer, Index_Type => Natural); > > > Is it possible, that this flag (-m64) is actually not supported > for my system/compiler? > > gcc (GCC) 4.4.0 20080314 (experimental) [trunk revision 133226] > GNAT 4.4.0 20080314 (experimental) [trunk revision 133226] > Darwin Kernel 9.3.0 root:xnu-1228.5.18~1/RELEASE_I386 i386 > N.B. There are 32-bit compilers running on 64-bit MacOS. Heap compiles and runs on MacOS X 10.5.3 here, using Drew Reynolds' latest 64-bit compiler (which has a few other problems, however): % g heap.adb gcc -c -gnat05 heap.adb gnatbind -x heap.ali gnatlink heap.ali % ./heap 536870912 % g -v GNATMAKE 4.4.0 20080329 (experimental) [trunk revision 133715] Copyright (C) 1995-2008, Free Software Foundation, Inc. -- Bill Findlay chez blueyonder.co.uk