lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #7054] Clarification needed for variable initializati


From: Simon Goldschmidt
Subject: [lwip-devel] [task #7054] Clarification needed for variable initialization
Date: Wed, 04 Jul 2007 07:38:29 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

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/





reply via email to

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