[LLVMdev] ldc (LLVM backend for the D Programming Language) has x86-64 support

Tomas Lindquist Olsen tomas.l.olsen at gmail.com
Tue Oct 28 11:43:39 PDT 2008


Maybe we could get LDC added to the "User List", under "Open Source
Projects"?

""
LDC - LLVM D Compiler
Compiler for the D programming language using LLVM as backend.
http://www.dsource.org/projects/ldc
""

Something like that :)

On Tue, Oct 28, 2008 at 7:32 AM, Chris Lattner <clattner at apple.com> wrote:

>
> On Oct 27, 2008, at 11:03 PM, Kelly W wrote:
>
> Hello everyone,
>
> I just thought I would let people here know that ldc (llvm backend for the
> D Programming Language) is getting pretty usable (a few larger libraries
> compile) and it now has x86-64 support added. I decided to run some timings
> on some D and C++ code to compare ldc to dmd (the mainline compiler), gdc
> (the gcc based D compiler) and g++. I used a ray tracing program found in
> this thread (make sure to use the code mentioned later in the thread as it
> has some optimizations):
>
> Go to digitalmars.com/ webnews/ newsgroups.php?renew=1 and search for:  "D
> slower than C++ by a factor of _two_ for simple raytracer (gdc)"
>
>
> Wow, very very nice!  Have you pointed this out to the other D users?
>
> -Chris
>
>
> There are versions of the tracer for D and C++ that are quite comparable.
> Here are some timings I got on an AMDx86-64 running Fedora Core Linux.
> Timings are averaged over 6 runs.
>
> llvm-g++4.0.1   5.76   (build 5449..backend from svn today)
> ldc-rev736      6.68
> g++4.1.2        6.72
> gdc0.24         7.45
> g++4.3.1        7.66
> dmd1.030        14.52
>
> As you can see D is NOT that much slower for the ray tracer, when using the
> proper compiler and options ;)  Dmd doesn't optimize very well here.
>
> I think LLVM performs quite admirably here and I am glad ldc uses it for a
> backend. The thread mentions the optimizations used for each compiler (ldc
> uses the same options as dmd).
>
> Just thought I would let people know,
> K.Wilson
>
> P.S. I am not sure if this counts as another "supported language" for LLVM
> yet, but I think it is getting close.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081028/1eccc165/attachment.html>


More information about the llvm-dev mailing list