[MacRuby-devel] backtrace in cocoa callbacks ...

Ernest N. Prabhakar, Ph.D. prabhaka at apple.com
Fri Sep 17 13:00:32 PDT 2010


Hi Bob,

On Sep 17, 2010, at 12:56 PM, Robert Rice wrote:
>>> After viewing the introduction to Xcode 4 and LLVM, I am curious if MacRuby compiler could be integrated into and directly compiled by LLVM. LLVM claims to have much improved diagnostics and an enviable analysis phase. Is this idea on the MacRuby roadmap?

> 
> I was aware that MacRuby uses LLVM runtime but I believe it is still using the GCC 4.2 compiler infrastructure. LLVM claims to support Objective-C, C and C++ compilation with much better diagnostics than GCC.

I think you may be referring to the "clang" compiler front-end, not LLVM per se:

http://clang.llvm.org/

I believe it is possible to build MacRuby with clang, though we don't take advantage of any clang-specific features since Ruby by default builds with -c99 strict mode.  Clang is only about compile-time diagnostics and static analysis for C code, which is useful for people debugging the underlying implementation but not of general interest.

In terms of performance, the important aspect is the LLVM back-end, which I believe we have always used.

-- Ernie P.


> 
> Bob Rice
> 
> 
> On Sep 17, 2010, at 6:45 AM, Caius Durling wrote:
> 
>> On 15 Sep 2010, at 00:00, Robert Rice wrote:
>> 
>>> After viewing the introduction to Xcode 4 and LLVM, I am curious if MacRuby compiler could be integrated into and directly compiled by LLVM. LLVM claims to have much improved diagnostics and an enviable analysis phase. Is this idea on the MacRuby roadmap?
>> 
>> 
>> MacRuby is already using LLVM, from the homepage: "MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X core technologies such as the Objective-C runtime and garbage collector, the LLVM compiler infrastructure and the Foundation and ICU frameworks."
>> 
>> C
>> ---
>> Caius Durling
>> caius at caius.name
>> +44 (0) 7960 268 100
>> http://caius.name/
>> 
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>> 
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list