Compilation of D Code
This lesson teaches us the process of code compilation and the job of a compiler.
Compilers for D language #
As of now, there are three D compilers to choose from:
-
dmd: the Digital Mars compiler
-
gdc: the D compiler of GCC
-
ldc: the D compiler that targets the LLVM compiler infrastructure.
In order to avoid the trouble of installing a compiler, we have already set up an environment for you on our platform so that you can easily learn and test your D programming language codes.
Compilation #
We have seen that the two tools most used in D programming are the text editor and the compiler. D programs are written in a text editor like the one we used in the previous lesson to write the code.
Although you don’t have to worry about the installation process, it is still a good idea to understand how the compilation works.