选择GDC和DMD [英] Choosing Between GDC and DMD

查看:224
本文介绍了选择GDC和DMD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很乐意在D.
中编程选择DMD(2.061)或GDC(4.6,4.7或4.8,快照)的优缺点。
我应该选择什么GDC版本?
我已经成功地构建了GCC-4.8和GDC-4.8的最新快照,并编译了一个你好世界的程序。



远程:




  • GDC :更多平台,运行时性能

  • DMD :编译性能,更多测试?



通过GDB调试支持怎么办在GDC和DMD之间?

解决方案

使用 DMD ,因为它是参考实现,并且被广泛使用。新的功能和修复程序主要是在 DMD (但是 GDC LDC 中发布,也是最新版本。 >在 DMD 之后不会被释放。)



作为新来者,您应该首先考虑 DMD ,直到你找到您需要的细节,但在 DMD 中找不到,那么您可以考虑使用 GDC LDC 。或者立即使用它们,因为所有编译器都从 DMD 共享一个共同的前端,所以切换它们不应该是这么有问题的(除了所有这些可能不一致的错误)。



所有3个编译器目前支持Windows和Posix平台上的32位和64位(alpha / beta?)。



采取了一些实验举措,通过 GDC 支持ARM平台/ a>和 LDC


DMD 相比,照明快可能会有更长的编译时间,

GDC LDC - 编辑/编译/运行循环a 一个乐趣,而 GDC LDC 通常编译更快的代码他们更适合发布版本(当然应用程序测试应该是d一个发布编译器)


I'm new to programming in D. What are the pros and cons of choosing either DMD (2.061) or GDC (4.6, 4.7 or 4.8, snapshot). And what GDC version should I pick? I've successfully built a recent snapshot of GCC-4.8 and GDC-4.8 and it compiles a hello world program.

Here are my thoughts on pros so far:

  • GDC: More platforms, run-time performance
  • DMD: compilation-performance, more tested?

What about debugging support through GDB - does it differ between GDC and DMD?

解决方案

Use DMD as it is the reference implementation and is most widely used. It is also the most up to date as new features and fixes are primarily released in DMD (but GDC and LDC are released not too long after DMD).

As a newcomer you should consider DMD first, until you find specifics, which you need but don't find in DMD, then you can consider using GDC or LDC. Or use them right away, as all compilers share a common frontend from DMD, so switching them should not be so problematic (except bugs which may not be the same in all of them).

All 3 compilers currently support 32-bit and 64-bit (alpha/beta?) on Windows and Posix platforms.

Some experimental initiative is taken to support ARM platforms by GDC and LDC.

GDC and LDC may have longer compile times compared to DMD which is lighting fast - making edit/compile/run cycle a a pleasure, while GDC and LDC generally compile faster code which makes them more suitable for release builds (of course app testing should be done on the release compiler)

这篇关于选择GDC和DMD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆