dotgnu-libjit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dotgnu-libjit] Tail Calls from C Code


From: ktreichel
Subject: Re: [Dotgnu-libjit] Tail Calls from C Code
Date: Mon, 29 Nov 2010 08:20:52 +0100 (CET)

Hi Noah,

>Hello,
>
>I am wondering, is there an easy way to do a tail call from compiled C
>code to JITed code?

This should be possible if closures are supported by libjit for the target 
platform.
The closure returned is the entry point of the function. 

This way you can call the code directly from C code.
It still depends on which code the C compiler generates for tail calls.
But it should work in most cases.

Cheers,
Klaus
___________________________________________________________
GRATIS! Movie-FLAT mit über 300 Videos. 
Jetzt freischalten unter http://movieflat.web.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]