www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Struck Gold

reply "Steve Teale" <steve.teale britseyeview.com> writes:
I'm probably the last person in the D community to realize, but 
yesterday I found Gold (the linker that is).

The build time for my project has diminished dramatically.

I just had to be a little more specific about one of my link-time 
build libraries in CodeBlocks.
Jan 12 2014
next sibling parent "Atila Neves" <atila.neves gmail.com> writes:
I hope you're using dmd 2.063 or git head, since dmd 2.064 with 
gold produces crashing code for switch jump tables. Anything with 
threads and boom.

Atila

On Sunday, 12 January 2014 at 16:25:01 UTC, Steve Teale wrote:
 I'm probably the last person in the D community to realize, but 
 yesterday I found Gold (the linker that is).

 The build time for my project has diminished dramatically.

 I just had to be a little more specific about one of my 
 link-time build libraries in CodeBlocks.
Jan 12 2014
prev sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 1/12/14 8:24 AM, Steve Teale wrote:
 I'm probably the last person in the D community to realize, but
 yesterday I found Gold (the linker that is).

 The build time for my project has diminished dramatically.

 I just had to be a little more specific about one of my link-time build
 libraries in CodeBlocks.
Yah, gold is great. Did you have any issues with it linking D code? Andrei
Jan 12 2014
next sibling parent reply "deadalnix" <deadalnix gmail.com> writes:
On Sunday, 12 January 2014 at 17:45:42 UTC, Andrei Alexandrescu 
wrote:
 On 1/12/14 8:24 AM, Steve Teale wrote:
 I'm probably the last person in the D community to realize, but
 yesterday I found Gold (the linker that is).

 The build time for my project has diminished dramatically.

 I just had to be a little more specific about one of my 
 link-time build
 libraries in CodeBlocks.
Yah, gold is great. Did you have any issues with it linking D code? Andrei
Code produced by dmd is not very gold compliant.
Jan 12 2014
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/12/2014 9:58 AM, deadalnix wrote:
 Code produced by dmd is not very gold compliant.
That's a frustratingly meaningless comment - there's nowhere anyone can go with it.
Jan 12 2014
parent "deadalnix" <deadalnix gmail.com> writes:
On Sunday, 12 January 2014 at 19:05:59 UTC, Walter Bright wrote:
 On 1/12/2014 9:58 AM, deadalnix wrote:
 Code produced by dmd is not very gold compliant.
That's a frustratingly meaningless comment - there's nowhere anyone can go with it.
I know, but I have not much more infos. On some project I tested, depending on the version of gold I get either failure to link via some obscure internal gold failure or broken binaries. I started to dig in gold source code for a while to understand, but at some point time ran short and I had to give up. If gold is a necessity (like it was for me on that project) then switching to GDC is the best option for now. Gold behavior started to become erratic in the File_read::find_or_make_view zone.
Jan 12 2014
prev sibling parent "Steve Teale" <steve.teale britseyeview.com> writes:
On Sunday, 12 January 2014 at 17:45:42 UTC, Andrei Alexandrescu 
wrote:
 On 1/12/14 8:24 AM, Steve Teale wrote:
 I'm probably the last person in the D community to realize, but
 yesterday I found Gold (the linker that is).

 The build time for my project has diminished dramatically.

 I just had to be a little more specific about one of my 
 link-time build
 libraries in CodeBlocks.
Yah, gold is great. Did you have any issues with it linking D code? Andrei
Not so far Andrei. The only thing I had to do was to modify my CodeBlocks project to give a full path for a small third party static library I use. The Gnu linker was happy with just the name and an item in my search paths list.
Jan 12 2014