hi, I'm a C51 beginner,I writen a C51 program which generated binary code about 30Kbytes, but in .asm program,it generated binary code only about 16Kbyte. How can I save the C51 program's code size? thanks!
Are the 2 programs doing the same thing? Or have you used things like printf? Are you an experienced Assembler programmer? If so, you should be able to look at the compiler output and see where the "ineffiency" lies What optimisation setting are you using? In 'C', it is very easy to write very inefficient code! Have you read Appendix C, "Writing Optimum Code" in the C51 manual?
Thanks Andrew Neil !Maybe I should do something like what you said.beside those you had said, what should I pay attention to save my C51 program code size?