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?
Simon
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users