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

Extended Linker LX51

I am using Teridian controller(71M6513) for metering solution.
But Im running out of space in code area.
I have features of size (approx. 80K).I am already using level 9 compiler optimisation. But still the code is not fitting in 64K.
Now I enabled Extended linker LX51 and also Linker Code Packing and finally the code is fitting in 64K.

1.)Is it ok to use extended linker.
2.)What would be the side effects of using (LX51).

Please give details on where to use LX51 and BL51.

Urgent requirement.
Thanks in Advance

Parents
  • There is only so much that any optimiser can do - it is not magic; it cannot make a silk purse from a sow's ear!

    It sounds like you have already applied the maximum compiler and linker optimisations - if that still leaves the code too big, then there is no other option than to re-examine the source code and fix any inherent inefficiencies!

    "there is no consideration given for optimisation from coding level"

    Then you are just going to have to start giving it some consideration!

    Start by looking at the map file to see where the largest amounts of code are being used.

    "I think it would be difficult to change the code now."

    If it's too big, then you have no other choice - other than to change the hardware to provide more memory!

    Have you checked that there isn't any redundant code left in that really shouldn't be there any more?

    Is there any non-essential code that could be removed?

Reply
  • There is only so much that any optimiser can do - it is not magic; it cannot make a silk purse from a sow's ear!

    It sounds like you have already applied the maximum compiler and linker optimisations - if that still leaves the code too big, then there is no other option than to re-examine the source code and fix any inherent inefficiencies!

    "there is no consideration given for optimisation from coding level"

    Then you are just going to have to start giving it some consideration!

    Start by looking at the map file to see where the largest amounts of code are being used.

    "I think it would be difficult to change the code now."

    If it's too big, then you have no other choice - other than to change the hardware to provide more memory!

    Have you checked that there isn't any redundant code left in that really shouldn't be there any more?

    Is there any non-essential code that could be removed?

Children
No data