Compiler or Interpreter or Hybrid
thedeemon via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Apr 20 19:23:01 PDT 2016
On Thursday, 21 April 2016 at 02:06:00 UTC, newBeeee wrote:
> How is D implemented? (Compiler, Interpreter and Hybrid). Can
> you please explain why?
Generally D is a compiled language: you give the compiler some
source code and it produces executable binary with native machine
code. Then you can distribute and run this binary without having
to have any source code.
However inside the compiler there is also an interpreter for most
of D, it's used during the compilation to perform some
compile-time computations and decisions, including ability to
generate more D code that gets further interpreted or compiled.
More information about the Digitalmars-d-learn
mailing list