From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,35f176bbf8db98d9,start X-Google-Attributes: gidfee84,public From: fish@daacdev1.stx.com ("John R. Vanderpool") Subject: problem allocating large static arrays in C??? Date: 1996/11/07 Message-ID: <55tbqt$77f@post.gsfc.nasa.gov>#1/1 X-Deja-AN: 195128046 organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA newsgroups: comp.unix.osf.osf1 DEC OSF1 V3.0 seems to not be able to allocate a single 10MB static array. am i missing something obvious? i don't read this newsgroup regularly so could i get an email reply if you follow-up... thanx, fish statically it fails: int main() { char total[5004][2168]; printf( "foobar\n" ); } Memory fault(coredump) it seems to work dynamically though: #include int main() { char *total; total=(char *)malloc( 5004*2168 ); if( total == NULL ) perror( "malloc" ); printf( "foobar\n" ); foobar -- "it all looks fine to the naked eye, but it don't really happen that way at all..." PT John R. <>< Vanderpool NASA/GSFC/HSTX