From: SourceForge.net <no...@so...> - 2004-01-27 15:44:26
|
Bugs item #883855, was opened at 2004-01-24 23:24 Message generated for change (Comment added) made by bernhardheld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=883855&group_id=599 Category: msc51(8051) target Group: None Status: Open Resolution: None Priority: 5 Submitted By: Onno Kortmann (onno) Assigned to: Nobody/Anonymous (nobody) Summary: SDCC generating incorrect code for pointer decrement Initial Comment: Hi, I'm in the progress of porting Adam Dunkels uip (see http://www.dunkels.com/adam/uip/) to SDCC/8051. Appended is a fragment which is essentially a scaled down version of memb.c in A. Dunkels code which shows a rather strange behaviour. If you run it with the marked line commented out, it will not execute the decrement of ptr2's content. I also tested the -- operator, this gives the same result. If you add the dummy function call, it works. I invoke sdcc as sdcc --i-code-in-asm --model-large -c The --model-large seemingly makes no difference. My version of sdcc is SDCC : mcs51/gbz80/z80/avr/ds390/pic14/pic16/TININative/xa51/ds400/hc08 2.3.5 (Nov 19 2003) (UNIX) from debian testing. The board I'm testing this code on uses an Atmel AT89S8252. Thanks for any help, Best regards Onno ---------------------------------------------------------------------- >Comment By: Bernhard Held (bernhardheld) Date: 2004-01-27 16:44 Message: Logged In: YES user_id=203539 I can't see a problem. I guess it's the live range bug, which has been fixed in version 2.3.6. We're now at 2.3.7. Please update your SDCC and report again. ---------------------------------------------------------------------- Comment By: Onno Kortmann (onno) Date: 2004-01-27 16:37 Message: Logged In: YES user_id=38102 Ok, but then I really don't know how to attach a file here. I checked "Check to Upload and Attach a File", inserted the file via the browse button, gave it a description and pushed the button "submit changes". Maybe it does not show up in your mailing list, but it does on the sourceforge bug page? Try that because I see the file (weird.c) here in a list with a download button next to it. Anyway, I will send you the file manually by mail. ---------------------------------------------------------------------- Comment By: Onno Kortmann (onno) Date: 2004-01-27 16:19 Message: Logged In: YES user_id=38102 Now it is :) ---------------------------------------------------------------------- Comment By: Bernhard Held (bernhardheld) Date: 2004-01-27 08:37 Message: Logged In: YES user_id=203539 There's nothing appended - please try again! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=883855&group_id=599 |