Compile time vs run time -- what is the difference?

Ali Çehreli acehreli at yahoo.com
Wed Dec 28 16:33:53 UTC 2022


On 12/28/22 08:04, Ali Çehreli wrote:

 > I don't think any of them can run the program though because
 > the program can be in a state that could harm its environment
 > like deleting unwanted files.

I was too eager there. Likely no IDE goes that far. All they need is to 
understand the code enough to give help. They must stop at some point in 
the following steps of compilation:

- preprocessing (does not exist for D)

- lexical analysis

- parsing

- semantic analysis

I copied those items from Wikipedia:

   https://en.wikipedia.org/wiki/Compiler

It lists the later stages of compilation as

- intermediate representation

- code optimization

- code generation

Ali



More information about the Digitalmars-d-learn mailing list