comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr. Adrian Wrigley" <amtw@linuxchip.demon.co.uk.uk.uk>
Subject: Re: Memory limits in Ada where Fortran has none
Date: Sun, 06 Mar 2005 23:01:36 GMT
Date: 2005-03-06T23:01:36+00:00	[thread overview]
Message-ID: <pan.2005.03.06.23.03.23.965237@linuxchip.demon.co.uk.uk.uk> (raw)
In-Reply-To: 1110070479.250902.220540@l41g2000cwc.googlegroups.com

Hi!

This GNAT problem is coming up more frequently now with
more people wanting to use their 32-bit systems to the full :(

I regularly declare and use arrays in Ada which are 1.9GB, and
map directly to files (via POSIX mmap).  This is amazingly
fast for access to databases I need because I can directly
access all the elements in memory.

Unfortunately, my data sets ideally would be around 4-5GB, but
my Linux box wont mmap more than 2GB :(

The main caveats (IIRC) are:

Don't use 'Size type attributes on large records/arrays
Only use access values to the data
accessing record elements whose offset is > 256MB may be a problem(?) 

It's a big nuisance, because you can end up with programs which
compile OK, but fail at run-time.

I'm hoping someone will build an Athlon64 implementation of GNAT which
can make use of 64-bit access values.  I'm sure it will happen one day,
because 64-bit PCs will soon be ubiquitous, and the 256MB will become
a total embarrassment to the GNAT/Ada community.

Adrian
-- 
Dr. Adrian Wrigley, Cambridge, UK.



  parent reply	other threads:[~2005-03-06 23:01 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-06  0:54 Memory limits in Ada where Fortran has none braver
2005-03-06  1:09 ` Jeff C
2005-03-06  6:18   ` braver
2005-03-06  9:26     ` Martin Krischik
2005-03-06 16:14       ` braver
2005-03-06 16:28         ` Jeff C
2005-03-06 23:09         ` Craig Carey
2005-03-07  0:36           ` braver
2005-03-07  5:55           ` braver
2005-03-08  5:35             ` braver
2005-03-06 14:09     ` Stephen Leake
2005-03-06  9:33 ` Martin Krischik
2005-03-06 22:13 ` Gerald
2005-03-06 23:01 ` Dr. Adrian Wrigley [this message]
2005-03-07  0:31   ` braver
2005-03-07 12:47     ` Dr. Adrian Wrigley
2005-03-07  9:41   ` Martin Krischik
2005-03-07 11:59     ` Dr. Adrian Wrigley
2005-03-07 12:26       ` Martin Krischik
2005-03-07  0:05 ` Robert A Duff
2005-03-07 18:04   ` braver
2005-03-16 19:41     ` Robert A Duff
2005-03-17 18:49       ` Martin Krischik
2005-03-08 11:24   ` Dr. Adrian Wrigley
2005-03-09  3:39     ` Craig Carey
2005-03-16 17:39       ` Craig Carey
2005-03-16 19:51     ` Robert A Duff
2005-03-16 23:47       ` Dr. Adrian Wrigley
replies disabled

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