> > Is code, xdata and data all the same memory or only the first two?
>
> Yes. All three are the same. This is how the FX2 is mapped. It
> has 8K of internal RAM, mapped as code, data, and xdata.
> The only "parallel universe" is the SFR block at 0x80-100 in parallel
> with the indirect RAM block that I will use for a stack.

If this is true and data memory (a.k.a. scratchpad memory, 0x00-0x80) overlaps code memory then using registers r0-r7 destroys the reset-vector and the first interrupt-vector(s). And using bits in the bit- addressable memory (0x20-0x30) destroys other interrupt- vectors. I very much doubt this is the case, but I agree the datasheet is not clear about this.

I still believe you do not need --no-pack-iram nor -- data-loc.

Maarten
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to