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

LX51 circumvent maximum identifier name length

The following two lines produce an L46 warning:

sbit aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab = 0xD0^0;
sbit aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac = 0xD0^1;

*** WARNING L46: SFR SYMBOL HAS DIFFERENT VALUES
    SYMBOL:  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    MODULE:  MAIN.obj (MAIN)
   DEFINED:  MAIN.obj (MAIN)

The identifiers are 41 characters long each. It seems the linker discards anything after 40 characters.

I could not find any information on such a limit in the documentation. Could someone point me to the right place?

Also, I would like to know whether there are any options to disable this limit or to circumvent it (other than making the identifier shorter).

Parents Reply Children