Mail Archives: djgpp/1999/08/07/20:38:35
Nate Eldredge wrote:
> > I was probably wrong about that specific issue (the 80k), but in the
> > past, I've had problems with very large global static arrays (several Megs).
> If you can still reproduce them, perhaps you could report it so we can
> see if a real problem underlies it.
Well, I can't seem to recreate it, so it was probably my imagination, but I
did notice that static array values are loaded from the executable, which makes
this program over 40Megs as an executable:
------------------
#include <stdio.h>
int a[10000000];
int main(int argc, char *argv[])
{
printf("size = %d", sizeof(a));
return 0;
}
---------------------
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT HotMail DOT com
ICQ: 32959047
- Raw text -