> $TOOL_BASE/sdcc --xram-loc 0x1F40 --code-loc 0 --stack-loc > 0x3e80 /home/crodrigu/projects/debugger/debugger.rel > /home/crodrigu/projects/debugger/uart.rel > /home/crodrigu/projects/debugger/CTC.rel
You need -mz80 in your link command line. I think SDCC might default to using the 8051 linker without it??? Pretty sure there is no xram in z80, you probably want --data-loc instead. Also, I don't believe that --stack-loc works either, at least with z80 port (am I wrong??? somebody???). I think (with z80 port ) probably everybody is using a custom crt0.o. I don't know what system the default was made for, but it probably does not match yours. Most people seem to use the --no-std-crt0 option, and then add their own crt0.o to the list of files for the link command. If you do it this way, I believe you need to put crt0.o first. If you delete the default, or replace it with your own, you can omit the --no-std-crt0, and just let linker pick up yours automatically. I suspect that the crt0.o is the bigest stumbling block for those new to SDCC. I know it was for me!!! Randy ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user