Re: Automaticly eliminating redundant zero initialisers

From: Tigran Aivazian (tigran@veritas.com)
Date: Mon May 01 2000 - 14:40:25 EST


On Mon, 1 May 2000, David Forrest wrote:

> I remember that initially BSS meant Bull-S___ Storage, and was
> uninitiallized and in an indeterminate state. It should be initiallized
> before reads, and should not be counted on to be anything: Cautious
> programmers avoid using uninitialized variables, and good compilers warn
> them if they do. If Linux has an initially zero storage space, it has
> more overhead, and isn't quite the old BSS.

No, BSS does not originare from "Bull-S___ Storage" but from ancient IBM
asm symbol "bss - block started by symbol". And although it is quite a
habit for experienced programmers to not assume "x is initialized" unless
one can point his finger to the place where x is initialized, as Alan
correctly pointed out the standard demands it so it is perfectly ok to
rely on it (especially since the kernel enforced it by explicit
initialization to zero).

Regards,
Tigran.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:09 EST