gdc or ldc for faster programs?

Ali Çehreli acehreli at yahoo.com
Wed Jan 26 04:28:25 UTC 2022


On 1/25/22 16:15, Johan wrote:
 > On Tuesday, 25 January 2022 at 19:52:17 UTC, Ali Çehreli wrote:
 >>
 >> I am using compilers installed by Manjaro Linux's package system:
 >>
 >> ldc: LDC - the LLVM D compiler (1.28.0):
 >>   based on DMD v2.098.0 and LLVM 13.0.0
 >>
 >> gdc: dc (GCC) 11.1.0
 >>
 >> dmd: DMD64 D Compiler v2.098.1
 >
 > What phobos version is gdc using?

Oh! Good question. Unfortunately, I don't think Phobos modules contain 
that information. The following line outputs 2076L:

pragma(msg, __VERSION__);

So, I guess I've been comparing apples to oranges but in this case an 
older gdc is doing pretty well.

Ali



More information about the Digitalmars-d-learn mailing list