This is the mail archive of the gcc@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: Having problem with files


Pandey, Pooja wrote:
for datasize of 200x500 matrix its working fine ...but for 1000x2000 i am not able to
understand what is the problem?

This is a more appropriate question for the gcc-help list than the gcc list. The gcc list is primarily for questions related to gcc development.


You probably exceeded system limits for stack space size. A 1kx2k array of ints is 8MB, which is an unusually large amount of data for the stack. Try using global or static variables instead of local variables, or using malloc, or increasing the system limits. If you are using bash, look up "ulimit" in the bash manual. If you are using csh, look up "limit" in the csh manual.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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