Re: Doubt about compiler: Front-End vs Back-End

2020-02-16 Thread Curious via Digitalmars-d-learn
On Monday, 17 February 2020 at 03:07:33 UTC, Adam D. Ruppe wrote: On Monday, 17 February 2020 at 02:55:56 UTC, Curious wrote: Note the ending: "The same front-end code is used by DMD, GDC and LDC." But what the meaning of this sentence? They literally share like 97% of the code. Looking ove

Re: Doubt about compiler: Front-End vs Back-End

2020-02-16 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 17 February 2020 at 02:55:56 UTC, Curious wrote: Note the ending: "The same front-end code is used by DMD, GDC and LDC." But what the meaning of this sentence? They literally share like 97% of the code. Looking over Github: https://github.com/dlang/ I see DMD, Phobos and so on, b

Doubt about compiler: Front-End vs Back-End

2020-02-16 Thread Curious via Digitalmars-d-learn
Hi, could anyone shed a light about the Frond-End and Back-End? I understood the Back-End part, where "roughly" each compiler will generate a machine code based on a IR (Intermediate Representation) generated by the Front-End. But I'm having trouble with the Front-End part, and for what I ga