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 variableinitializ


From: Goldschmidt Simon
Subject: RE: [lwip-devel] [task #7054] Clarification needed for variableinitialization
Date: Wed, 4 Jul 2007 09:56:29 +0200

> We should make is mandatory that the compiler zeros the BSS 
> and copies the INITDAT section to the correct place.
> 

If INITDAT isn't copied this clearly is a bug! But can you please show
me any standard paper that makes it mandatory to zero the BSS? All
compilers I use do it, but as long as I don't know it's really a
standard and not a thing most compilers do, I don't want to make it
mandatory for a portable piece of code like lwIP should be.

Don't get me wrong, my goal would be to leave the zeroing to the
compiler, only I want to be sure it's really portable!

> If the compiler is broken then hopefully it would not be hard 
> to write an extra bit of code that is called before _main to 
> perform these tasks!!!
> 

For embedded platforms, this should definitively be achievable.

Simon




reply via email to

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