On 18/01/2016 7:44 PM, Jari Komppa wrote:
> Hi.
>

> According to documentation, if I don't use --data-loc, the location is
> set to "as low in memory as possible". I don't know what this would
> result in with zx spectrum, where the low 16k is ROM, next 6k or so is
> display memory, and the 16k-32k is "slow memory" which one would
> probably avoid using if possible.. It would be nice if there was an
> option to calculate and place the --data-loc right after code ends.

I had this exact issue when I started using SDCC with my stuff. The
solution is to use your own linker file, which is usually generated
automatically by sdcc, and remove the "-b _DATA = 0x8000" line. Then 
link with "sdldz80 -nf file.lk", instead of using sdcc to link.

Alexis.

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to