Anna Sidera wrote: > > From: Andrew Haley <aph@xxxxxxxxxx> > >> Anna Sidera wrote: >>> ----- ----- >>> From: Andrew Haley <aph@xxxxxxxxxx> >>>> Anna Sidera wrote: >>>>> Can you tell me if there is heap size limitation in gcc? I use >> a >>>> server with 4 CPU and 16 BG ram. I create tables using malloc >> and >>>> the total memory I can use is a little less than 4 GB. >>>> >>>> Seems odd. What OS / architecture are you using? >>> I am using unix. SunOS 5.10 >> OK, but what architecture? 32-bit or 64-bit mode? >> >> Type >> >> isainfo -v >> >> If it's 32-bit then you will be limited, obviously. >> If gcc is generating 32-bit executables then you will also be >> limited. The -m64/-m32 options control this. > isainfo -v gives the following output: > > 64-bit sparcv9 applications > vis2 vis > 32-bit sparc applications > vis2 vis v8plus div32 mul32 So, did compiling with -m64 fix it? Andrew.