DDMD and such.

Jacob Carlborg doob at me.com
Wed Sep 28 23:27:55 PDT 2011


On 2011-09-28 22:52, Nick Sabalausky wrote:
> "Jacob Carlborg"<doob at me.com>  wrote in message
> news:j5vu43$580$1 at digitalmars.com...
>>
>> I think that the right approach would be to have a modular frontend
>> written in D that can be used as a library, think Clang. Then DMD could
>> use this frontend and connect it with the DMC backend.
>>
>> To get this frontend I think the DMD frontend needs to be ported to D
>> without much modification in the first step. DMD would then use the D
>> version of the frontend. When the complete frontend is ported and used by
>> DMD, then we could start refactoring the frontend to make it more modular.
>>
>> I think this is the most realistic approach. I don't think Walter would
>> just drop the DMD frontend and start with a new one, or use some other
>> frontend developed by someone else.
>>
>
> I agree, but I think it might be best to start by creating D bindings to the
> C++-based frontend. That way the frontend could be ported to D (without much
> modification) piece-by-piece. Kind of like the way Walter's porting Optlink
> from Asm to C.

I guess starting with that would be even better. The question is, how 
would that be done? Using D's capabilities in connecting with C++ or a C 
interface?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list