Thread overview
Struck Gold
Jan 12, 2014
Steve Teale
Jan 12, 2014
Atila Neves
Jan 12, 2014
deadalnix
Jan 12, 2014
Walter Bright
Jan 12, 2014
deadalnix
Jan 13, 2014
Steve Teale
January 12, 2014
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.
January 12, 2014
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.

January 12, 2014
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

January 12, 2014
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.
January 12, 2014
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.
January 12, 2014
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.
January 13, 2014
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.