Sorry for previous reply.
I overlooked use of the index variable X.

Which C compiler are you comparing the FPC with?
GCC, MSVC, CC (include version please)
Some compilers have a function optimization, some have just a statement optimization.


Could you post a whole example?
The whole program would prevent misunderstanding.
As your program could be rewritten using B as constant or
the inner loop as :
 A := (A + X) * B;

How are you measuring the time?

Jan Ruzicka


_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to