From: SourceForge.net <no...@so...> - 2009-03-15 09:54:23
|
Bugs item #2686159, was opened at 2009-03-13 14:01 Message generated for change (Comment added) made by bessemer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2686159&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: mcs51(8051) target Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: James Best (bessemer) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect code when accessing xdata Initial Comment: The attached C file produces incorrect code when compiled on 2.8.0 using sdcc -c test.c test1 stores 0x01 in location 0xf000 (incorrect) test2 stores 0x03 in location 0xf000 (correct) They should be equivalent. Supplied headers from TI use the (*(xdata char*) XXXX) format. ---------------------------------------------------------------------- >Comment By: James Best (bessemer) Date: 2009-03-15 09:54 Message: Correction to the above: test1 stores 0x02 in location 0xf000 (incorrect) test2 stores 0x03 in location 0xf000 (correct) This also happens on 2.8.9 #5397 (Mar 1 2009) (ie. RC1) Tested using s51 also from RC1. ---------------------------------------------------------------------- Comment By: James Best (bessemer) Date: 2009-03-13 14:01 Message: File Added: test.lst ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2686159&group_id=599 |