lkml.org 
[lkml]   [2012]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: gcc compiler modification to cater for new programming language
From
Date
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



\
 
 \ /
  Last update: 2012-06-13 14:21    [W:0.057 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site