Question on large arrays in C
steffen at ihlpg.UUCP
steffen at ihlpg.UUCP
Fri Feb 27 04:21:51 AEST 1987
> > A "static" declaration in C,
> > either inside or outside of a function, I have found to result in each
> > and every byte being initialized data. Ugh.
> >--dan levy
>
> Then you have been dealing with some VERY POOR compilers. Allocating code file
> space for bss data which gets initialized to 0 is absurd, since it is trivial
> to build prologue code (which will probably run faster than loading from disk)
> to handle this.
This is a bug in all PCC1 compilers I've encountered here at AT&T
Bell Labs. It's easy to fix in some, but hard in others that expect
the asembler comm psuedo-op to mean global data. (Uninitialized global data
uses the comm psuedo-op.)
--
Joe Steffen, AT&T Bell Labs, Naperville, IL, (312) 369-7395
More information about the Comp.unix.questions
mailing list