gdc or ldc for faster programs?

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Jan 25 23:10:58 UTC 2022


On Tue, Jan 25, 2022 at 11:01:57PM +0000, forkit via Digitalmars-d-learn wrote:
> On Tuesday, 25 January 2022 at 20:01:18 UTC, Johan wrote:
> > 
> > Tough to say. Of course DMD is not a serious contender, but I
> > believe the difference between GDC and LDC is very small and really
> > in the details, i.e. you'll have to look at assembly to find out the
> > delta.  Have you tried `--enable-cross-module-inlining` with LDC?
[...]
> dmd is the best though, in terms of compilation speed without
> optimisation.
> 
> As I write/test A LOT of code, that time saved is very much
> appreciated ;-)
[...]

My general approach is: use dmd for iterating the code - compile - test
cycle, and use LDC for release/production builds.


T

-- 
Chance favours the prepared mind. -- Louis Pasteur


More information about the Digitalmars-d-learn mailing list