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

Code Size Reduction

Hi,

We have a software we ported from MSP430 to 8051 using Keil compiler. On MSP430 using IAR the code size was only 11K. However in Keil assigning data, pdata and xdata to various segments we are only able to get it down to 14K.

In this kind of segmented memory hardware (data, pdata, xdata) are there any documented best practices for coding? Also best practices for assigning data, pdata and xdata to various memory and funnctions to obtain optimal code size?

Thanks