This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libffi & LLVM


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]