Re: dmd-built dmd is faster that ldc-built dmd or gdc-built dmd?

2016-03-11 Thread David Nadlinger via Digitalmars-d
On Friday, 11 March 2016 at 15:09:26 UTC, Iain Buclaw wrote: Yes, I know. And if I were to say which behaviour is desired. I'd say GDC is doing the right thing. Marking all functions as 'weak' is a terrible idea on both DMD's and LDC's part. I distinctly remember Daniel and me having to

Re: dmd-built dmd is faster that ldc-built dmd or gdc-built dmd?

2016-03-11 Thread Johan Engelen via Digitalmars-d
On Friday, 11 March 2016 at 15:09:26 UTC, Iain Buclaw wrote: Marking all functions as 'weak' is a terrible idea on both DMD's and LDC's part. I can't judge what is best here, but LDC does not always mark functions as weak. After the DDMD switch, we have multiple def. problems on Windows

Re: dmd-built dmd is faster that ldc-built dmd or gdc-built dmd?

2016-03-11 Thread Iain Buclaw via Digitalmars-d
On Friday, 11 March 2016 at 14:46:59 UTC, Vladimir Panteleev wrote: On Friday, 11 March 2016 at 14:32:26 UTC, Iain Buclaw wrote: https://github.com/D-Programming-Language/dmd/blob/master/src/root/rmem.d#L166-L193 How memory is allocated makes a huge difference. Thanks :) After changing that

Re: dmd-built dmd is faster that ldc-built dmd or gdc-built dmd?

2016-03-11 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 11 March 2016 at 15:04:44 UTC, Edwin van Leeuwen wrote: On Friday, 11 March 2016 at 14:46:59 UTC, Vladimir Panteleev wrote: Thanks :) After changing that to version(all), LDC is faster now. Doesn't build with GDC though (multiple definitions)... How much faster is LDC? About 10%,

Re: dmd-built dmd is faster that ldc-built dmd or gdc-built dmd?

2016-03-11 Thread Edwin van Leeuwen via Digitalmars-d
On Friday, 11 March 2016 at 14:46:59 UTC, Vladimir Panteleev wrote: Thanks :) After changing that to version(all), LDC is faster now. Doesn't build with GDC though (multiple definitions)... How much faster is LDC?

Re: dmd-built dmd is faster that ldc-built dmd or gdc-built dmd?

2016-03-11 Thread Vladimir Panteleev via Digitalmars-d
On Friday, 11 March 2016 at 14:32:26 UTC, Iain Buclaw wrote: On Friday, 11 March 2016 at 13:39:04 UTC, Vladimir Panteleev wrote: Hi, In the process of setting up a new development environment, I noticed that DMD's codegen seems to outperform GDC's or LDC's when building DMD itself. I wrote

Re: dmd-built dmd is faster that ldc-built dmd or gdc-built dmd?

2016-03-11 Thread Iain Buclaw via Digitalmars-d
On Friday, 11 March 2016 at 13:39:04 UTC, Vladimir Panteleev wrote: Hi, In the process of setting up a new development environment, I noticed that DMD's codegen seems to outperform GDC's or LDC's when building DMD itself. I wrote a test script to measure the time it takes for DMD (built

dmd-built dmd is faster that ldc-built dmd or gdc-built dmd?

2016-03-11 Thread Vladimir Panteleev via Digitalmars-d
Hi, In the process of setting up a new development environment, I noticed that DMD's codegen seems to outperform GDC's or LDC's when building DMD itself. I wrote a test script to measure the time it takes for DMD (built with different compilers) to build Phobos: