Disappointing optimisation...

Hi,

I'm doing a comparison between BL51 and Lx51 to determine the code space savings- I'm a bit suprised to see that for the same project, Lx51 yields a code reduction of only 0.6%- I've enabled the AJMP/ACALL setting, and altered the optimisation levels (speaking of which, under Lx51 raising the optimsation levels from 9 to the 'new' levels of 10/11 actually increases the code size)

Does anyone have any similar experience of this phenomena- or any suggestion as to what else I should try to get the touted 10-15% reductions available using LX51?

I'm only using the 'BANKAREA' LX51 controls...

Thanks

David

Parents
  • That's strange - on all my fairly sizeable projects I see code size reductions of around the percentage Keil claim.

    Do you have 'Favour size' selected?

    "under Lx51 raising the optimsation levels from 9 to the 'new' levels of 10/11 actually increases the code size"

    This has been my experience as well. There have been another couple of threads on this subject, the conclusion seemed to be that optimisation level 9 gives the smallest code.

Reply
  • That's strange - on all my fairly sizeable projects I see code size reductions of around the percentage Keil claim.

    Do you have 'Favour size' selected?

    "under Lx51 raising the optimsation levels from 9 to the 'new' levels of 10/11 actually increases the code size"

    This has been my experience as well. There have been another couple of threads on this subject, the conclusion seemed to be that optimisation level 9 gives the smallest code.

Children
More questions in this forum