Hi Prateek,

I don't see anything wrong with your code or the 
generated assembly. Those pops belong to the prior 
pushes to save your values.

Maarten

> Hello,
> 
> 
> 
> We are using SDCC for compiling  a code for 8051 core from Oregano Systems 
> target.
> We are facing an issue with serial port reception code we have written.
> All the local variables are overwritten by the third value read from the 
> serial port.
> 
> For e.g 
> 
> a = serial_read();
> b=serial_read();
> c=serial_read();
> 
> after third statement all a,b,c have the same value(last value read)
> Please find attached the C code and assembly code generated.
> On debug we find 4 strange pop statements in the asm code.
> 
> Lines 415-418
> Can someone comment on it?
> 
> Thanks and Regards,
> Prateek/Akhil


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to