Re: [fpc-devel] Inlining recursive functions works - and it's fast too?

2005-06-13 Thread Florian Klaempfl
Joost van der Sluis wrote: > Hi all, > > i'm curious what happens here. If I make a recursive funtion inlined, it > runs way faster? > > Ackerman-test results: > $ ppc386 -O3p3r -dRecursiveInline ackerman.pp && cpu/bin/timeit > /home/joost/src/ackerman 10 > Ack(3,10): 8189 > Execution took 3953

[fpc-devel] Inlining recursive functions works - and it's fast too?

2005-06-13 Thread Joost van der Sluis
Hi all, i'm curious what happens here. If I make a recursive funtion inlined, it runs way faster? Ackerman-test results: $ ppc386 -O3p3r -dRecursiveInline ackerman.pp && cpu/bin/timeit /home/joost/src/ackerman 10 Ack(3,10): 8189 Execution took 395377 microseconds. $ ppc386 -O3p3r ackerman.pp &&