public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Integer Array Size Problem
@ 2006-12-03 18:56 Digvijoy Chatterjee
       [not found] ` <4DC346ED-14ED-4B5B-A957-083B070B3A5B@gmail.com>
  2006-12-17 16:19 ` Tim Prince
  0 siblings, 2 replies; 6+ messages in thread
From: Digvijoy Chatterjee @ 2006-12-03 18:56 UTC (permalink / raw)
  To: gcc-help

Hi ,
I was trying to test algorithms with huge int arrays when i started
getting segfaults..here is a simple program which emulates this
behaviour...
Each time i run this program , it segfaults , This might be very naive
..but can anyone help me with what I am missing here ?

static const int N=10000000;
int main()
{
int c, i[N];
for (c=0;c<N ; c++ )
i[c]=c;
}

Thanks
Digz

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-12-17 16:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-03 18:56 Integer Array Size Problem Digvijoy Chatterjee
     [not found] ` <4DC346ED-14ED-4B5B-A957-083B070B3A5B@gmail.com>
2006-12-03 19:18   ` Digvijoy Chatterjee
2006-12-03 21:13     ` Blake Huff
     [not found]     ` <e40293600612031307u1f8749b1m3c1d0a73a78e87e8@mail.gmail.com>
2006-12-03 21:16       ` Fwd: " Dima Sorkin
2006-12-04  2:41         ` Tim Prince
2006-12-17 16:19 ` Tim Prince

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).