November 12, 2013
On Tuesday, 12 November 2013 at 06:40:25 UTC, Kelly wrote:
> ...
>
> Amber is an offshoot of D1, with some small parts of D2 where
> it made sense, so it may not be very close to what you are
> looking for, but it might be worth checking out. It compiles
> best on linux with dmd and ldc 1.074 and needs Tango to compile
> (Tango is also our main standard lib for Amber...though we can
> only compile about 25-30% of Tango with the Amber compiler right
> now).
>
> Good luck with xdc, whichever way you go with it.
>
> Thanks,
> Kelly
>

Hi Kelly,

Thank you for the words of encouragement!

I didn't know about Amber.  I'll have to check it out.

Thanks!
November 12, 2013
On Tuesday, 12 November 2013 at 01:32:16 UTC, Chad Joan wrote:
> On Monday, 11 November 2013 at 08:11:06 UTC, Kai Nacke wrote:
>> On Friday, 19 July 2013 at 13:38:12 UTC, Chad Joan wrote:
>>> I think a C backend would get us farther than an LLVM backend.
>>
>> Hi,
>>
>> LLVM has a C++ backend in the git tree. The old C backend is still maintained outside the git tree (search the dev mailing list for an url).
>>
>> So if you like C-output, you can start with LDC today. For sure, you have to port druntime to this new environemnt...
>>
>> Regards,
>> Kai
>
> Is there any built-in support for using this C++ backend in LDC right now?  Something like "ldc --target=c++ main.d -o main.cpp"?

Careful: The "cpp" LLVM backend actually creates C++ code that constructs the corresponding LLVM IR and is mostly useful for developers working on LLVM-based compilers.

But as Kai mentioned, there also is backend that emits equivalent C. Last time I checked, it was still being worked on, even though it isn't in the official LLVM source tree.

David
1 2 3 4 5
Next ›   Last »