[fpc-pascal] for loop vs while loop

Lars noreply at z505.com
Fri Feb 3 00:00:49 CET 2017

On Wed, February 1, 2017 4:49 am, Graeme Geldenhuys wrote:
> Hi,
> Just curious (been in a discussion with somebody else). Is there a
> performance difference between a FOR loop and a WHILE loop?
> Not sure if it will make a difference, but the usage is with three
> nested loops, iterating over some 300,000 plus data points in total.
> Regards,
> Graeme

Don't forget Repeat Until...

Simply look at the assembler code generated (a big sin)

More information about the fpc-pascal mailing list