Hi, Jochen Voss: > If I remember correctly, you can do > > ptr = malloc (<really large number>); > > without problem. You can't do it if the allocation is so large that there's no free memory in the application's memory space where to put it. > memory is actually used. So a program allocating but not using > 2 gigs of memory would just run fine. > ... unless the C library or your heap or ... is mapped somewhere in the vicinity of the center of your 3GB memory area. (Or less, if the kernel has been compiled with a different application/kernel split.) -- Matthias Urlichs | noris network AG | http://smurf.noris.de/
Attachment:
pgp83VKZWUrca.pgp
Description: PGP signature