Vincent Snijders wrote:
Sergei Gorelkin schreef:
willem wrote:
1 IF we take the mandelbrot paramet N = 5000 then Calculatepoint
will be called 25000000 times.
andCalculatePoint pushes x*Step - 1.5,Cy on the stack.
then it executes the statements of CalculatePoint
and finally it pops a boolean from the stack.
It does not do any push's and pop's, you may compile into assembler
and see it yourself. In particular mandelbrot program, data is passed
to CalculatePoint via global variables.
In general, FPC passes up to 3 parameters into functions by using
registers, and simple (boolean, integer and alike) function return
values are also passed in registers.
yes i am going to look at the assembly code.
You can specify 3 assembly language formats , which is the preferred one ?
As a matter of fact the version in fpc's svn, not yet submitted uses
an inlined CalculatePoint.
Vincent
regards Wim.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives