This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

locate a code table at the end of ROM

How do I locate a constant variable at the end of code area using the Extended Linker ( LX51 ) ?

In myfile source, my constant table is declared as:
unsigned char code MyTable[10]=
{
...
}

I would like to locate this constant table (by the corresponding segment at the end of my ROM).

I use a Philips chip that provides 96kb of ROM mapped from 0x800000 to 0x817FFF. I use the ROM(HUGE) option in compiler and my application is not a banked one...

I try with:
- ?CO?myfile(0x817000), i have the L108 linker error
- ?CO?myfile(^0x817FFF), i have the L108 linker error

Could you help me?

Parents
No data
Reply
  • In fact,
    i can use const far type by declaring my table in HCONST by the following way:

    const char far dummy[4];

    With this, i find a ?FC?myfile segment in map file and i can locate it at the end of ROM....OK for this step!

    But, what about a table of functions declared as below in a source file:
    code void (void * TableOfFunctions[])

    In the same way, i would like to locate also this table at the end of ROM?
    Can i consider this a table as CONSTANT table and could i move it in HCONST segment?

    Thank you for the application notes (160) that you send me!

Children
No data