Re: [fpc-pascal] Floating Point Performance on Intel

2005-03-29 Thread Jan Ruzicka
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

Re: [fpc-pascal] Floating Point Performance on Intel

2005-03-29 Thread Jan Ruzicka
On Mar 28, 2005, at 10:19, Raw Magick DOT COM wrote: A := 0; B := 0.9; For X := 0 to 1000 do begin A := A + X; A := A * B; end; # Var A located at ebp-4 # Var B located at ebp-8 # Var X located at ebp-12 //A + B are set up before here - its the loop

Re: [fpc-pascal] Floating Point Performance on Intel

2005-03-28 Thread Jonas Maebe
On 28 Mar 2005, at 17:19, Raw Magick DOT COM wrote: a) The loop counter is basically a comparison against a memory area = slow Turn on register variables (-Or). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

Re: [fpc-pascal] Floating Point Performance on Intel

2005-03-28 Thread Florian Klaempfl
Raw Magick DOT COM wrote: > Hi All, > > My name is Peter Dove, I am new to FPC and Lazarus. I come from a > mainly Delphi background but I use C, C++ and assembler as needed to > improve performance on the imagining app we are working on. > > Like Delphi, FPC has a poor floating point optimisati