Hi all, We are using the C51 with OPTIMIZE (9, SIZE) and we have a problem the code space. The question is : if we change to CX51 and use OPTIMIZE (11, SIZE) , do you think we can save some code bytes? We are using a w925EC625 from WINBOND, 80c51 based standard. Do you have another idea to reduce the code size ?. Best Regard and thanks for your help.
Hi, Sorry for my poor English, the general idea is, "change a variables declaration from xdata to data". The reality is to move selected xdata variables to data, and the original ones in data move to xdata in order to reduce code size, and not to decrease the stack size. Additionally defining the pointers in idata, has the same effect than in data. Then is more convenient to use the data segment for other types of varables due to the diferente addressing mode of each area. Thanks Erik.
just a fact (I see it as such): If you use the large/huge model and change some variables to DATA you will get less gain than if you use the small model and change some to XDATA. Just the process is different, but the difference in result can be dramatic. Must be something about the way a DNA computer works. Erik