I am working on a chip (EZ-USB) which has the same RAM mapped in both
MOVX and MOVC address spaces. This is easily achieved on a standard
8051 with some creative gating on the RD, WR, and PSEN lines.
As such, --xram-loc is not a constant that can be defined on the command
line, but, rather, the next available position after the end of code.
Is there a decent way to make the linker choose the location of XSEG so
as to play nicely with this scheme? I'd really rather not get into a
situation where I have to compile my code, observe where the code ends,
and then plug that address + 1 into my Makefile. For one thing, that is
pretty much guaranteed to cause trouble when my code grows.
Get latest updates about Open Source Projects, Conferences and News.