D Language Front-End Proposed For GCC 8, 800k Lines of Code

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 17 20:47:45 PDT 2017


On Saturday, 17 June 2017 at 23:00:49 UTC, Joakim wrote:
> On Saturday, 17 June 2017 at 21:48:31 UTC, Mark wrote:
>> On Sunday, 28 May 2017 at 19:23:04 UTC, Nordlöw wrote:
>>> Does this, perchance, deserve a post in "Announce"? :)
>>>
>>> http://www.phoronix.com/scan.php?page=news_item&px=D-Frontend-For-GCC
>>
>> 800k lines of code! Wow. Is this also how big the DMD frontend 
>> is?
>
> No, Dscanner says the current ddmd frontend is about 84 klocs 
> of D code, and I found last year that about 63 klocs of that 
> was used by ldc, so that's what's really needed:
>
> http://forum.dlang.org/thread/ovkhtsdzlfzqrqneolyv@forum.dlang.org
>
> I don't think this patch would be using the ddmd frontend 
> though, as gdc was still using the older C++ frontend last I

Doesn't make much difference whether in C++ or D.

> heard, but without having looked at the patch at all, the big 
> difference is probably that they're counting druntime and

The link in the article is to the patch series posting, which 
includes only the patch summary and diff stat. If you haven't 
read it then I highly recommend that you do.

> phobos also, and misrepresenting that as part of the frontend.

About 90% of that is the combination of dmd frontend, testsuite, 
druntime, phobos - i.e files that are copied verbatim from dlang 
on github.  Then half of the remainder is roughly auto generated 
content.


Regards,
Iain.



More information about the Digitalmars-d mailing list