In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: RW Senser, I was playing around with the memory map that cc1b generates. "#pragma rambank -" sets the base of the ram allocated for globals and locals to the Mapped Ram ($00-$0F) (aka SharedRam) "#pragma rambank 1" sets the base of the ram allocated for globals and locals to rambank 1 ($10-$1F), etc for 2-15 "#pragma rambank 0" sets the base of the ram allocated for globals and locals to rambank 0 (SX48/52 only, $100-$10F) My libraries use only locals and should therefor not be restricted in which library comes first, but that will require a #pragma rambank 1 in the C main file (so no mapped ram is used for locals). I also noted cc1b always allocates rambank 7 ($70-$7F) and I have not yet found out to what (data stack perhaps?). There is also "#pragma rambase xx" but I am not quite sure about the difference between rambank and rambase. I think we should first have a clear understanding how cc1b deals exactly with globals and locals. I use the cc5x manual as guideline but cc1b may differ slightly in some cases. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=204491#m205015 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)