Add ImportC compiler to dmd

Walter Bright newshound2 at digitalmars.com
Mon May 10 09:27:35 UTC 2021


On 5/10/2021 1:53 AM, Gregor Mückl wrote:
> How does this impact gdc as part of GCC? GCC already has a C compiler, so this 
> could be seen as some kind of duplication of features/effort from their 
> perspective.

Since this is all front end work, and it translates the C code into D AST nodes, 
it should "just work".

After all, CTFE "just worked" with ImportC. I didn't do a thing to enable it. I 
didn't do a thing to the glue code, optimizer, or back end (other than not 
generating moduleinfo).


More information about the Digitalmars-d mailing list