Avoid large static objects (Re: max size of automatic arrays?)
Sam Kendall
sam at delftcc.UUCP
Tue Dec 10 16:04:56 AEST 1985
In article <627 at ttrdc.UUCP>, levy at ttrdc.UUCP (Daniel R. Levy) writes:
> ....
> Trying to use [a very large] "static" [array] also worked, by the way, but
> produced a 1.6 Meg executable and was a bit slow to compile and invoke.
||
This brings up an interesting point: on many UNIX systems (V7, System V
Release 2.0, but NOT 4.2 BSD), static objects, even unitialized ones, are
never put into BSS storage. So if your program has large arrays, make
them external even if they logically should be static. Otherwise you
will share Daniel's wretched fate. ^
|| Q:|
|| |/
|| |
|| / \
-----| Sam Kendall--------------------------allegra ! delftcc!sam
-----|_ Delft Consulting Corp. seismo!cmcl2 /
\(212) 243-8700 ihnp4/
ARPA: delftcc!sam at nyu.ARPA or @nyu-cmcl2.ARPA
think got posting midnight Glub glub
I I've the after disease. glub
More information about the Comp.lang.c
mailing list