----- Original Message ----- From: Andrew Haley <aph@xxxxxxxxxx> Date: Thursday, January 1, 2009 4:22 pm Subject: Re: Is there heap size limitaion? > Anna Sidera wrote: > > > > ----- Original Message ----- > > From: Andrew Haley <aph@xxxxxxxxxx> > > Date: Thursday, January 1, 2009 1:45 pm > > Subject: Re: Is there heap size limitaion? > > > >> 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. > > Andrew. > > isainfo -v gives the following output: 64-bit sparcv9 applications vis2 vis 32-bit sparc applications vis2 vis v8plus div32 mul32 Anna