Hi all, Can someone know if there's a differance between loop with 'for' and same one with 'while'? Is there a differance in code space, time execution and etc? Thanks a lot, Robert
You could try the various constructs and take a look at the .cod file to see the generated assembler. Remember however that the exact code generated may change with different compiler versions or even with changes you make elsewhere in your code due to compiler optimisations.
It is impossible to give a general answer, as this depends greatly on so many other factors; eg, * Whether you count up or down; * Which Memory Model you use; * The size of your index variable; * The loop exit condition; * etc, etc, etc... You will just have to look at the generated code and see what is best in your particular application. Only you can do this.
Thank you all for your help, it was very helpfull. Roberto