We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, We have one application which was developed in c51. By applying all aptimization techniqs provided by compiler, code size is near to 20k. If we change total code to Assembly from C, how much code size can be reduced?. Please provide me ur inputs.... Ramesh
thanks for ur response. you will get as good an answer form a microresistor as anywhere else. Optimized C can be more compact that assembly and it can be up to 40% more, it all depends. as an example mov p2,#44 will take the same room as p2=44; but switch{} will probably take a bit more room than jmp @a+dptr. So, the corect and only reply to "We want to prapose with assembly, for minimum code size. We want rough idea how much we can reduce" is "that depends, who knows" another issue is that writing "compiler friendly" C can reduce the code size dramatically. Erik