From: SourceForge.net <no...@so...> - 2006-10-06 11:47:51
|
Bugs item #1572067, was opened at 2006-10-06 13:47 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1572067&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: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Frieder Ferlemann (frief) Assigned to: Nobody/Anonymous (nobody) Summary: --data-loc, --idata-loc not functional Initial Comment: --data-loc, --idata-loc seem to be non functional. aa and a[0] are both located to 0x08 and bb and b[0] are both located to 0x18: -------8<--------------------------------------- /* sdcc --data-loc 0x70 --idata-loc 0xf0 dl.c */ unsigned char __data a[0x10]; unsigned char __idata b[0x10]; unsigned char __at(0x08) aa; unsigned char __at(0x18) bb; void main(void) { a[0]++; aa++; b[0]++; bb++; } -------8<--------------------------------------- Version 2.6.1 #4402 (Oct 6 2006) 132 ; dl.c:10: a[0]++; 0064 AA 08 136 mov r2,_a ; @0x08 0066 74 01 139 mov a,#0x01 0068 2A 140 add a,r2 0069 F5 08 144 mov _a,a 145 ; dl.c:11: aa++; 006B 05 08 148 inc _aa 149 ; dl.c:12: b[0]++; 006D 78 18 152 mov r0,#_b ; @0x18 006F 86 02 153 mov ar2,@r0 0071 74 01 156 mov a,#0x01 0073 2A 157 add a,r2 0074 78 18 160 mov r0,#_b 0076 F6 161 mov @r0,a 162 ; dl.c:13: bb++; 0077 05 18 165 inc _bb -------8<--------------------------------------- ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1572067&group_id=599 |