[Top][All Lists]

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

Re: [lwip-users] About global parameter initial problem

From: address@hidden
Subject: Re: [lwip-users] About global parameter initial problem
Date: Wed, 26 Nov 2008 17:04:28 +0100
User-agent: Thunderbird (Macintosh/20080914)

bonny gijzen wrote:
Wouldn't the code be better if the variables were initialised in the routines itself?
I think a fancy C compiler will optimize it away ...
Hehe, that's exactly the discussion we had some while ago. The baseline was that we want to leave out unnecessary code to help people with compilers that aren't good in optimizing. Since there are so many different compilers for embedded systems, it's not clear if all are good optimizers...

As to the init code: Sorry, I should have known that since I wrote the init code myself on our platform. Yes, it's not the compiler then. But it _could_ be that the compiler puts the variables into the wrong section where they don't get initialized? And finally, if the init code is not self-written, it should take care of this, shouldn't it?


reply via email to

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