Andries Brouwer writes: > Do I explain things so badly? Let me try again. > The difference between > > static int a; > > and > > static int a = 0; > > is the " = 0". The compiler may well generate the same code, > but I am not talking about the compiler. I am talking about > the programmer. This " = 0" means (to me, the programmer) > that the correctness of my program depends on this initialization. > Its absense means (to me) that it does not matter what initial > value the variable has. It is too late to fix things now. It would have been good to have the compiler put explicitly zeroed data in a segment that isn't shared with non-zero or uninitialized data, so that the uninitialized data could be set to 0xfff00fff to catch bugs. It would take much effort over many years to make that work. I'd rather see the compiler optimize for cache line use and make use of small address offsets to load variables. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: [PATCH] removal of "static fo... James A Sutherland
- Re: [PATCH] removal of "static fo... Tigran Aivazian
- Re: [PATCH] removal of "stat... Philipp Rumpf
- Re: [PATCH] removal of "stat... Peter Samuelson
- Re: [PATCH] removal of "static fo... Michael Meissner
- Re: [PATCH] removal of "static foo = 0&qu... Jeff Garzik
- Re: [PATCH] removal of "static foo = ... Andries Brouwer
- Re: [PATCH] removal of "static fo... Martin Mares
- Re: [PATCH] removal of "static foo = 0&qu... Herbert Xu
- Re: [PATCH] removal of "static foo = 0&qu... Helge Hafting
- Re: [PATCH] removal of "static foo = 0&qu... Albert D. Cahalan
- Re: [PATCH] removal of "static foo = ... Russell King
- Re: [PATCH] removal of "static fo... Albert D. Cahalan
- Re: [PATCH] removal of "stat... Peter Samuelson
- Re: [PATCH] removal of "stat... Russell King
- Re: [PATCH] removal of "static foo = 0" Tigran Aivazian
- Re: [PATCH] removal of "static foo = 0" Andries Brouwer
- Re: [PATCH] removal of "static foo = 0&qu... Georg Nikodym
- Re: [PATCH] removal of "static foo = ... Alan Cox
- Re: [PATCH] removal of "static fo... John Alvord
- Re: [PATCH] removal of "stat... Andre Hedrick