This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: memory problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]