[LLVMdev] Some blogged LLVM experience.

Michael T. Richter ttmrichter at gmail.com
Fri Feb 15 06:24:51 PST 2008


On Fri, 2008-02-15 at 09:06 +0100, Duncan Sands wrote:

> Does ruby compile ruby code to native instructions and execute them?  


No.  Ruby is an interpreted language.  The latest version has a VM that
it targets -- YARV -- but it still does not compile to native like, say,
a JIT would.


> Otherwise it probably means that llvm-gcc miscompiled something.  


This is what I'm guessing at this stage.  It is, however, only a guess.
And given that GCC raw -- the "native" compilation platform for Ruby --
also fails (albeit in a different, highly-entertaining way -- I'm also
guessing that part of this is because Ruby is doing some weird stuff
behind the scenes.


> If you can extract a testcase please don't hesitate to post it to LLVM bugzilla
> (http://llvm.org/bugs).  Bugs generally get fixed fast, but someone needs
> to report them!


I have already reported the bug with a "test case" that consists of
"here is how to build Ruby with llvm-gcc".  :)  I have also slotted some
hacking time to figure out where in the test harness the thing is
exploding.  Unfortunately, unlike the explosion that GCC's failure
gives, the LLVM-GCC version explodes so thoroughly that it doesn't print
out any kind of error message.  All I get is a bunch of pacifier dots on
the screen as one test after another is run (there are thousands) and
then that message.  It will take me a while to figure out where the
error is happening.  (Binary search for the win!)  Once I have it
narrowed down to one specific test, I will update the bug report with
the steps required to replicate the error.

-- 
Michael T. Richter <ttmrichter at gmail.com> (GoogleTalk:
ttmrichter at gmail.com)
Experts in advanced countries underestimate by a factor of two to four
the ability of people in underdeveloped countries to do anything
technical. (Charles P Issawi)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080215/dbfc35d6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080215/dbfc35d6/attachment.sig>


More information about the llvm-dev mailing list