lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] lwip on 8051 with Keil compiler


From: Adam Dunkels
Subject: [lwip-users] Re: [lwip] lwip on 8051 with Keil compiler
Date: Wed, 08 Jan 2003 22:54:38 -0000

Hi Vicente!

On Monday 04 February 2002 09:01, you wrote:
> I have ported lwip to 8051 and used uCOS as the HAL for lwip. It compiles
> to about 60K.
>
> I am using the Keil compiler with max optimisation and have found
> problems(bugs) with the code generated by the compiler. As I step through
> the code there are certain lines of code that are simple variable
> assignments. The debugger steps over these lines of code but when I check
> the variable in the watch window it is not assigned, If I hardcode the
> assignment it works, if I optimise only certain files but not the file
> containing that line of code then it works, but fails elsewhere.
>
> At this point my confidence in the Keil compiler(with max optimisation) is
> low, has anyone experienced similar problems with the Keil compiler? Is
> there a better compiler than the Keil compiler?

I think that there have been similar troubles with Keil and uIP - variable 
accesses are optimized away just like that! Apparently it can be worked 
around by adding the "volatile" keyword to those variables that dissapear in 
the optimization.

Are there any variables in particular that are optimized away?

/adam
-- 
Adam Dunkels <address@hidden>
http://www.sics.se/~adam
[This message was sent through the lwip discussion list.]




reply via email to

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