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: Julian Gardner [RSD]
Subject: RE: [lwip-devel] [task #7054] Clarification needed for variableinitialization
Date: Wed, 4 Jul 2007 08:43:04 +0100

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

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

joolz

-----Original Message-----
From: address@hidden on behalf of Simon Goldschmidt
Sent: Wed 04/07/2007 08:38
To: Simon Goldschmidt; Frédéric Bernon; address@hidden
Subject: [lwip-devel] [task #7054] Clarification needed for 
variableinitialization
 

Follow-up Comment #2, task #7054 (project lwip):

> (Julian Gardner wrote)

Hehe.

> This is the way it should work, i think setting a variable to 0 is by
default the norm.

You _think_. I do, too. But I'd like to _know_ before I tell people their
compiler is broken!

> As to the tcp_backoff this will make the code larger as if 
> taking the tcp_backoff as an example we would have 13 stores 
> and at least 7 loads.
> 

Of course it will get bigger. It's not my intention to do that. I was
referring to ZEROing arrays that are NOT initialized, and I'd use memset for
that. If we make it mandatory for compilers to zero the bss section, we can
leave that away. But right now, we don't seem to know that for sure!

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7054>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/



_______________________________________________
lwip-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-devel

<<winmail.dat>>


reply via email to

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