Absolute Addressing of data in code space

Help
SRBreaky
2007-01-16
2013-03-12
  • SRBreaky
    SRBreaky
    2007-01-16

    Hi,

    i use the sdcc for a C8051F133 from SiLabs. In my program i have a big array of data that doesn't change. I used the following line:

    code unsigned char INI[LEN*2]={ 10,23,27,...

    So far it works. But now i need to put this array at the absolute address 0xC000. I tried this line:

    code __at (0xC000) unsigned char INI[LEN*2]={ 10,23,27...

    but it doesn't work. How can i put this array to the absolute address 0xC000 and use it in my programm?

    Thanks for helping me.

     
    • Maarten Brock
      Maarten Brock
      2007-01-16

      For those interested, this is answered in Feature Request #1636908.