xdc: A hypothetical D cross-compiler and AST manipulation tool.

Daniel Murphy yebblies at nospamgmail.com
Sun Nov 10 04:24:52 PST 2013


"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message 
news:l5n7iq$2op2$1 at digitalmars.com...
> On 11/9/13 9:37 PM, Daniel Murphy wrote:
>> "deadalnix" <deadalnix at gmail.com> wrote in message
>> news:juoauplfttovsmbrafzh at forum.dlang.org...
>>> On Sunday, 10 November 2013 at 04:54:18 UTC, Daniel Murphy wrote:
>>>> That is true in general, but D actually maps quite well onto C.
>>>>
>>>> I did some work on creating a C backend a while back, and it worked 
>>>> quite
>>>> well.
>>>>
>>>
>>> Out of curiosity, how do you handle exceptions ?
>>
>> I didn't.  This was focussed on a subset suitable for microcontrollers. 
>> I
>> would probably emit C++ instead if exceptions were required.
>
> That doesn't quite rhyme with C being a good backend language :o).
>
> Andrei
>

I guess it's not for the full language, but if you can't use gdc or llvm, 
chances are your platform is too constrained to use exceptions.  I don't 
mean C is capable of representing everything, but it can handle a large and 
useful subset. 




More information about the Digitalmars-d mailing list