This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

'while' vs 'for' loop

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

Parents
  • 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.

Reply
  • 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.

Children
No data