From: SourceForge.net <no...@so...> - 2006-05-23 20:45:49
|
Bugs item #1493829, was opened at 2006-05-23 22:37 Message generated for change (Settings changed) made by maartenbrock You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1493829&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: linker >Group: non bugs >Status: Closed >Resolution: Duplicate Priority: 5 Submitted By: Vankata - Greece (vankata) Assigned to: Nobody/Anonymous (nobody) Summary: --xram-loc not working ?! Initial Comment: Hi guys, First of all congratulations for the great job you are doing! It is pleasure to have and use your tool. Recently I observed a problem that I would like to share with you. I hope I'm wrong but for me it seems that the linker's '--xram-loc' option doesn't work correctly. I have an external 32KB RAM starting at 0x8000, where I would like to put an array. I don't send you my code but a small example that provokes similar behavior. ----------------------------------- void main() { xdata unsigned char a[2000]; unsigned char i; for(i=0; i<2000; i++) a[i]=0; } ----------------------------------- I invoke the compiler with: H:\>sdcc bug.c --xram-loc 0x8000 At line 152 of the bug.lst I expect: 001C 34s80 152 addc a,# (_main_a_1_1 >> 8) ^^ instead of: 001C 34s00 152 addc a,# (_main_a_1_1 >> 8) ^^ Concerning the SDCC version, 'sdcc -v' gives me: H:\>sdcc -v SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/d s400/hc08 2.5.6 # (May 18 2006) (MINGW32) I didn't find in the SDCC manual anything that can prompt me an eventual error of mine and after lots of trials I couldn't find a solution. I hope I am not loosing your time. Below you can find piece of the C source and the corresponding Assembler listing Best regards, Ivan Buliev, Ph.D. University of Patras Dept. of Medical Physics Patras 26500 GREECE ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1493829&group_id=599 |