Re[2]: [fpc-pascal] Recursion optimization by compiler

2010-09-04 Thread José Mejuto
Hello FPC-Pascal, Saturday, September 4, 2010, 9:07:57 AM, you wrote: RB> This a misunderstanding of way recursion can be flattened RB> into a loop. It's especially not useful because the transformed RB> version still uses a stack, so it doesn't execute in constant RB> space. I know, but as far

Re[2]: [fpc-pascal] Recursion optimization by compiler

2010-09-03 Thread José Mejuto
Hello FPC-Pascal, Friday, September 3, 2010, 3:06:30 PM, you wrote: BA> First, just curious, have somebody here ever benchmark performance between BA> native stack and regular RAM as a stack? Stack is RAM, so the only difference is in the algorithm used. -- Best regards, José ___