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: DASILVA VINCENTE BIT
Subject: [lwip-users] RE: [lwip] lwip on 8051 with Keil compiler
Date: Wed, 08 Jan 2003 22:28:22 -0000

Hello Adam

In sys.c, in the sys_timeout function the following line of code on line 170

timeout->time = msecs;

This just does not happen resulting in timeout->time always being = 0.

Thanks for the advise
Vicente

-----Original Message-----
From: Adam Dunkels [mailto:address@hidden
Sent: 04 February 2002 11:08 AM
To: address@hidden
Subject: Re: [lwip] lwip on 8051 with Keil compiler


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.]
[This message was sent through the lwip discussion list.]




reply via email to

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