|
From: Philipp K. <pk...@sp...> - 2003-09-14 11:23:03
|
James Davis wrote: >Hello, > >I'm planning to use sdcc to compile small C programs to test an >implementation of a Z80 based system that I've designed. My main concern >is that the compiler should not generate code that writes to the lower >16KB of the address space being that it is occupied with ROM. > >How do I instruct the compiler/linker to generate code in which variables >and the procedure stack are not stored in certain memory locations? > > Example: sdcc -mz80 --code-loc 0x8000 --data-loc 0x6000 Assumes the program is in ROM at 0x8000 and RAM is at 0x6000. |