D + LLVM?
Tomas Lindquist Olsen
tomas at famolsen.dk
Fri Aug 3 14:54:08 PDT 2007
Nick Sabalausky wrote:
> "Tomas Lindquist Olsen" <tomas at famolsen.dk> wrote in message
> news:f3mp43$235j$1 at digitalmars.com...
>> I have been playing around with merging the DMD frontend and LLVM for
>> about
>> a week now. It's not a really serious attempt, but it's going a lot
>> better than I had thought it would. I had not planned to announce
>> anything, but since this post has arrived I thought I'd let out the
>> secret.
>>
>
> I've been working on writing stubs and such to at least get the DMD
> frontend to compile and I'm curious how you handled DMD's tocsym.c and
> todt.c files. Did you:
>
> 1. Rip them out (like I think I've heard DMC does)?
> 2. Keep them, but gut the function bodies?
> or
> 3. Leave them intact and recreate all of the backend stuff they reference?
> (Like I tried but ultimately gave up on)
That would be number 2.
The LLVM backend is fundamentally different from Walters, and I'm not using
them at all.
My compiler is based on the toElem and toObjFile backend functions only.
Eventually I'll be moving away from those too and roll my own completely...
But that is for the future...
I anticipate having a pre-alpha release ready in a week or two, then you can
take a look yourself.
Also you might be interested in Gregor Richards DMDFE *[1] which is the DMD
frontend with all the backend stuff removed, and it compiles
out-of-the-box.
[1]: http://dsource.org/projects/dsss/browser/branches/dmdfe
More information about the D.gnu
mailing list