[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: OP_TAILCALL versus OP_CALL question
- From: Dibyendu Majumdar <mobile@...>
- Date: Mon, 23 Mar 2015 23:33:50 +0000
On 21 March 2015 at 22:03, Pierre-Yves Gérardy <pygy79@gmail.com> wrote:
> The trouble is that you can't do that with LLVM.
>
> It does support TCO, though, at the expense of easy C interop (you
> have to use incompatible calling conventions which breaks the ABI). As
> long as you don't want to mix C and Lua/Ravi code, FFI-style, you
> should be fine.
>
> http://llvm.org/docs/CodeGenerator.html#tail-call-optimization
> http://llvm.org/docs/LangRef.html#calling-conventions
Thanks ... I will look into this.