Messages in this thread | | | Subject | Re: gcc compiler modification to cater for new programming language | From | Bernd Petrovitsch <> | Date | Wed, 13 Jun 2012 13:38:45 +0200 |
| |
On Die, 2012-06-12 at 17:06 +1000, Chris Jones wrote: > Cong Wang wrote: [...] > > Yeah, you need to write a gcc front-end for it. > > Why would you suggest writing a front-end for it? I think you're wrong
Because that's the right thing to do?!
> there as a front-end has nothing to do with the functionality of gcc. > Explain to me why you would suggest this? Curious.
Get a basic course in compiler-contruction and learn, what "frontend" and "backend" in a compiler are. But you could also write a parser which parses the new/other programming language and produces C which in turn can be compiled a an unpatched gcc.
> I am aware it is off-topic and have also brought it up on the gcc
Then why are you posting it anyways?
Bernd -- Bernd Petrovitsch Email : bernd@petrovitsch.priv.at LUGA : http://www.luga.at
| |