How to setup GDC with Visual D?

Johannes Pfau via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 4 01:33:59 PDT 2015


Am Sat, 04 Jul 2015 06:30:31 +0000
schrieb "Marko Grdinic" <mrakgr at gmail.com>:

> On Friday, 3 July 2015 at 23:45:15 UTC, Guy Gervais wrote:
> > On Friday, 3 July 2015 at 19:17:28 UTC, Marko Grdinic wrote:
> >> Any advice regarding how I can get this to work? Thanks.
> >
> > I got GDC to work with VS2013 + VisualD by going into 
> > "Tools->Options" (The VS menu, not the one under "Visual D") 
> > and adding the paths under "Projects and Solutions -> Visual D 
> > Settings -> GDC Directories". I put the path to the bin folder 
> > in MinGW64 and the bin folder in GDC.
> >
> > I get a 10%-15% speed improvement, which is nice, but my 
> > binaries are 10 times larger.
> 
> I have no idea where Visual D is supposed to be looking at, but I 
> managed to get it to work by adding the Gdc/bin directory into 
> path. With that it finds it anywhere.

It's kinda fascinating that GDC/MinGW seems to work for some real world
applications. Please note that it's in early alpha state, mostly
unsupported and not really well-tested though. (I hope this will change
later this year)

Then 10x larger binaries are indeed caused by debug info. If you don't
need the debug info you can use the included strip.exe to remove it:

strip.exe yourapp.exe


More information about the Digitalmars-d-learn mailing list