This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to detect that memory over 4G isn't available ?
- From: Harald Servat <harald dot servat at bsc dot es>
- To: Paul Chavent <paul dot chavent at fnac dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 17 Aug 2010 10:05:09 +0200
- Subject: Re: How to detect that memory over 4G isn't available ?
- References: <4C69AD6D.1060003@fnac.net>
En/na Paul Chavent ha escrit:
> Sorry for the lack of information.
>
> I'am under a GNU/Linux, on an X86 platform. The problem is reproductible
> on an ubuntu 10.4 and on a slackware 13. On the slackware gcc --verbose
> gives :
>
> Reading specs from /usr/lib/gcc/i486-slackware-linux/4.3.3/specs
> Target: i486-slackware-linux
> Configured with: ../gcc-4.3.3/configure --prefix=/usr --libdir=/usr/lib
> --enable-shared --enable-bootstrap
> --enable-languages=ada,c,c++,fortran,java,objc --enable-threads=posix
> --enable-checking=release --with-system-zlib
> --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp
> --with-gnu-ld --verbose --with-arch=i486 --target=i486-slackware-linux
> --build=i486-slackware-linux --host=i486-slackware-linux
> Thread model: posix
> gcc version 4.3.3 (GCC)
>
X86 (i486 here) architecture has a physical limit of 4Gb because it's a
32 bit architecture (and 2^32 == 4G addresses).
This may explain why you can't go beyond 4Gb.