lwip-devel
[Top][All Lists]
Advanced

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

RE: [lwip-devel] [bug #20254] Initializing static/global variables


From: Julian Gardner [RSD]
Subject: RE: [lwip-devel] [bug #20254] Initializing static/global variables
Date: Tue, 26 Jun 2007 11:12:23 +0100

So what about removing all the extra 

xxxx = 0; 
xxxx = NULL;

for all globals and static variables, if there are any?

These should be taken care of the the compiler clearing the BSS on
startup, well all the compilers I use work this way.

Should not make the code any larger

Also change static tables to const tables (sockets.c) moves data that is
only read into the rom data section, no more wasted ram

joolz

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Simon
Goldschmidt
Sent: 26 June 2007 10:24
To: Kieran Mansley; Simon Goldschmidt; Thomas Taranowski; Petr Cernin;
address@hidden
Subject: [lwip-devel] [bug #20254] Initializing static/global variables


Follow-up Comment #7, bug #20254 (project lwip):

Julian Gardner wrote:
> Can we leave this out, trying to code around BROKEN compilers is
BAD!!!

That's my opinion, too. I'm only looking at the summary of this and
think
maybe we can reduce binary size. If we don't want that or it doesn't
save
anything, we can close this. I certainly wouldn't change anything
because of
a broken compiler!

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20254>

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



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




reply via email to

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