Some questions about the Pico Lisp Interpreter

2008-06-05 Thread konrad Zielinski
Hi, I have tow questions about the Pico Lisp interpreter, both just to statisfy my curiosity. 1) Does the Interpretor do any kind of tail call optimisation, I gather this would involve not bothering to save the values of symbols on a tail call. 2) With the release of SquirlFish there a lot of di

Re: Some questions about the Pico Lisp Interpreter

2008-06-05 Thread Alexander Burger
Hi Konrad, > 1) Does the Interpretor do any kind of tail call optimisation, I No, not at all. As far as I can see, this is not easy to implement in an efficient way. The interpreter would have to detect tail recursion at runtime, which takes much more than time than simply executing the call/ret

Re: Some questions about the Pico Lisp Interpreter

2008-06-05 Thread konrad Zielinski
Yes, you answered the questions I asked, and gave the answers I suspected. I think part of the point with Direct Threading is that you need to explicitly tell gcc to enable it when compiling the VM, and write some switch statements in a certain way. Haven't got my head around the code yet. It make