April 21, 2016 Compiler or Interpreter or Hybrid | ||||
---|---|---|---|---|
| ||||
How is D implemented? (Compiler, Interpreter and Hybrid). Can you please explain why? |
April 21, 2016 Re: Compiler or Interpreter or Hybrid | ||||
---|---|---|---|---|
| ||||
Posted in reply to newBeeee | 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.
|
Copyright © 1999-2021 by the D Language Foundation