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
The whole code is in a messy state. Now Im given the responsibility of reducing the code size.I think it would be difficult to change the code now. I feel for you, having to do something that is difficult. There is no way you can fix a mess without changing something.
Memory Model :Large
I would change to the small model and then add the XTATA qualifier to rarely accessed variables and add the IDATA qualifier to infrequently accessed variables till the memory spaces fall within acceptable limits. You will see a dramatic reduction in code size.
Erik