Re: Automaticly eliminating redundant zero initialisers

From: Bradley D. LaRonde (brad@ltc.com)
Date: Mon May 01 2000 - 13:37:19 EST


----- Original Message -----
From: David Forrest <drf5n@mug.sys.virginia.edu>
To: Russell King <rmk@arm.linux.org.uk>
Cc: George Anzinger <george@pioneer.net>; Tigran Aivazian
<tigran@veritas.com>; Graham Stoney <greyham@research.canon.com.au>; Linux
kernel mailing list <linux-kernel@vger.rutgers.edu>
Sent: Monday, May 01, 2000 1:52 PM
Subject: Re: Automaticly eliminating redundant zero initialisers

> 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.

Maybe that was the past, but modern Linux kernel programmers can count on
objects in .bss being intialized to zero, and by doing so save executable
space and code complexity.

Regards,
Brad

-
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:08 EST