Prev: GNAT.Serial_Communications ?
Next: Larger matrices
From: (see below) on 25 Jun 2008 13:26 On 25/06/2008 16:13, in article g3tna8$f9c$1(a)aioe.org, "Dennis Hoppe" <dennis.hoppe(a)hoppinet.de> 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 <surname><forename> chez blueyonder.co.uk
From: Dennis Hoppe on 25 Jun 2008 17:09
Thank you for your hint to use the Compiler maintained by Drew Reynolds. No, my testsuite runs as expected. Previously, I am used to http://www.macada.org as a source for a Mac suitable Ada Compiler. Thanks, Dennis (see below) wrote: > 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. > |