DMD vs. GDC vs. LDC

后端 未结 3 789
终归单人心
终归单人心 2021-01-31 07:39

What are the Pros/Cons of the different D Compilers? How is the performance and the standard compliance/D2 support? How well are debuggers supported? How good are the Error mess

3条回答
  •  臣服心动
    2021-01-31 08:09

    1. Significant drawback of DMD is shared library deficiency:
      • on Windows
      • on Linux

    2. I personally was surprised that GDC supports D2, but they say it does:
      • D1: 1.067
      • D2: 2.053

    3. LDC definitely seems to be scarcely maintained: "D2 is working on x86-32 Linux only". To me, it's a showstopper issue.

    4. While searching for LDC I've found one more compiler (?!): dil. I haven't tested it yet, but at least it's currently maintained. I'll research more on this topic ASAP. EDIT: As it was pointed out in comments, dil isn't close to a somewhat complete state for now — it is only able to parse the code and generate documentation from sources.

提交回复
热议问题