Mail Archives: djgpp/1995/12/09/10:25:28
> From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
> Date: Sat, 9 Dec 1995 12:06:10 GMT
>
> Charles Sandmann <sandmann AT clio DOT rice DOT edu> wrote (Subject: Re: decreasing
> program loadup time):-
>
> > ... load times are greatly improved with V2 since ... memory is not zeroed
> > ...
>
> That looks like stopping a LOT of existing programs from working, which relied
> on unassigned arrays and variables being all zeros at the start!!!
>
In many UNIXes unitialized global variables are not guarantied to be zeroed too.
Is it mentioned in ANSI C standard? Anyway, I think one should not expect the .bss
segment to be zeroed at start, if one wants to write a portable program.
---
Alexander Lukyanov
lav AT video DOT yars DOT free DOT net
- Raw text -