> I don't think we have any compiler support for that. So I recommend:
> Use the -b flag for the linker to get the symbols for code in RAM, and
> some tool such as objcopy to move it into ROM. Then in your main(), do a
> memcpy() to move the code form ROM to RAM, and then call it.

If you do then it would be useful to support that in both directions.
Being able to tell sdcc to just put the data in __INITIALIZED with no
funnies would also eliminate the binmunge stuff I do in Fuzix in order to
go the other direction.

Being able to get the relocation data without patching the linker would
also be very useful. Currently you need to run one of the patched linkers
for this (eg http://cpctech.cpc-live.com/download/link.zip )

Alan

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to