This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: memory problem
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: xuejun gu <dsdshgu at hotmail dot com>, gcc-help at gcc dot gnu dot org
- Date: Thu, 13 Jan 2005 11:40:26 -0600
- Subject: Re: memory problem
- References: <BAY18-F2557FAC5BE270CB818C797B58A0@phx.gbl>
Hi xuejun gu,
Are you allocating the extremely large array on the heap, or on the stack?
If you are allocating the array on the stack, make sure you have enough
stack space for your large array. For Red Hat Linux, I believe that's via
the ulimit command, use "ulimit -a" to see your current settings.
HTH,
--Eljay