lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-devel] [task #7054] Clarification needed for variable initiali


From: Goldschmidt Simon
Subject: RE: [lwip-devel] [task #7054] Clarification needed for variable initialization
Date: Wed, 4 Jul 2007 17:29:06 +0200

> Follow-up Comment #6, task #7054 (project lwip):
> 
> http://savannah.nongnu.org/bugs/?20254
> 
> (Robert Ammerman wrote: )
> 
> "It is indeed part of the C standard that global variables 
> without explicit initializers are set to zero.
> 
> However, talk about BSS or INITDATA is referring to some, but 
> not all compilers. The way the compiler manages the 
> initialization is not defined. 
> For example, it would be perfectly valid for the 
> compiler/linker to generate
> 
> a bunch of assignment and "memset" type statements that are 
> executed before main()"

Maybe I'm blind, I didn't find it in the ANSI C standard :-(
But OK, we can then change initialization to reflect this. Not all are
going to be happy with that,
but those are broken compilers ;-)


Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]