On 30-03-2015 17:07, Maarten Brock wrote:
> Hello Heejeong Ryu,
> 
> I'll start by assuming you are talking about an mcs51 target.
> 
> I'm not sure how XRAM is related to your problem, as xdata is usually a
> separate memory space from code. But maybe you have a Von-Neumann-ized
> design.
> 
> If you want some code in a different segment from the rest, you can use
> --codeseg or #pragma codeseg to place it in anything other than CSEG. Then
> when linking you can place this segment at some fixed address. You can do
> something similar for constant data. For more details look in the manual
> or ask more detailed questions here.
> 
> HTH,
> Maarten
> 
You also need to copy the code from ROM to RAM - at the addresses
defined when linking. Unless of course that you replace som of the RAM
in the XRAM area with ROM. Also remember to tell the linker that it can
not put variables in this area, otherwise you might encounter som
'funny' effects.

Best regards

Erlo

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to