This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: libffi & LLVM
- From: Gary Benson <gbenson at redhat dot com>
- To: libffi-discuss at sourceware dot org
- Date: Wed, 28 Oct 2009 11:15:04 +0000
- Subject: Re: libffi & LLVM
- References: <4AE1965D.1030808@redhat.com>
Anthony Green wrote:
> The latest MacRuby version replaced libffi with LLVM for closure
> support, the result of which is 3 to 4 times performance boost:
> http://www.macruby.org/blog/2009/10/07/macruby05b1.html
I'm looking at doing something similar for Shark. In this case,
it wouldn't be a straight replacement; methods would default to
using libffi, and hot methods would be replaced with LLVM-build
wrappers (in much the same way as interpreted methods default to
using the interpreter and get replaced with LLVM-compiled code
when hot).
> I've been thinking for a while that a LLVM backend to libffi
> makes sense. Does anybody have any thoughts or opinions on
> this?
Note that LLVM does not have JIT backends for anything like as
many platforms as libffi supports. x86, x86_64, ppc, ppc64
(maybe), alpha and arm is I think it.
Cheers,
Gary
--
http://gbenson.net/