Question on large arrays in C

dave at onfcanim.UUCP dave at onfcanim.UUCP
Sat Feb 21 10:04:35 AEST 1987


In article <1514 at ttrdc.UUCP> levy at ttrdc.UUCP (Daniel R. Levy) writes:
>.  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.

With what compiler?  The 4.2BSD C compiler statics, either external or
local to a function, into ".lcomm", which ends up in the bss segment.
Only initialized statics end up in the data segment.  Sounds like your
compiler or loader is lazy or broken.



More information about the Comp.unix.questions mailing list