Re: gcc compiler modification to cater for new programming language

From: Bernd Petrovitsch
Date: Wed Jun 13 2012 - 07:38:52 EST


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@xxxxxxxxxxxxxxxxxxx
LUGA : http://www.luga.at

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/