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
If we change total code to Assembly from C, how much code size can be reduced? That's completely impossible to tell for any of us, because we * don't know what the program is supposed to do * haven't seen that code * have no idea how good your guys are at 8051 assembly
Hi Broeker, thanks for ur response. We have very good experiance in Assembly. I am not very comfortable with "C". That is reason I am not able to estimate. We want to prapose with assembly, for minimum code size. We want rough idea how much we can reduce?. thanks in advance.
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
View all questions in Keil forum