* gcc compiler modification to cater for new programming language
@ 2012-06-10 2:02 Chris Jones
2012-06-10 2:18 ` Cong Wang
2012-06-10 8:31 ` Lukasz
0 siblings, 2 replies; 5+ messages in thread
From: Chris Jones @ 2012-06-10 2:02 UTC (permalink / raw)
To: linux-kernel
Is it possible to modify the source code of gcc to enable to compilation
of a completely new programming language, as yet unrecognized? How much
of a big job would I be looking at for such a task?
Regards
--
Chris Jones
OpenSUSE Linux x86_64 (PC)|Android (Smartphone)|Windows x86 (Gaming!)
Kernel developer|Lead Developer of SDL|Lead Developer of Nest Linux|Gamer and Emulator nut|Web Services|Digital Imaging Services
Controllers: Logitech Precision|PS3 controller|XB360 controller|Logitech Attack 3 j/stick
Emulators: Fusion|Gens|ZSNES|Project64|PCSX-R|Stella|WinVICE|WinUAE
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc compiler modification to cater for new programming language
2012-06-10 2:02 gcc compiler modification to cater for new programming language Chris Jones
@ 2012-06-10 2:18 ` Cong Wang
2012-06-12 7:06 ` Chris Jones
2012-06-10 8:31 ` Lukasz
1 sibling, 1 reply; 5+ messages in thread
From: Cong Wang @ 2012-06-10 2:18 UTC (permalink / raw)
To: Chris Jones; +Cc: linux-kernel
On Sun, Jun 10, 2012 at 10:02 AM, Chris Jones <chrisjones@spin.net.au> wrote:
> Is it possible to modify the source code of gcc to enable to compilation of
> a completely new programming language, as yet unrecognized? How much of a
> big job would I be looking at for such a task?
Yeah, you need to write a gcc front-end for it.
But this is totally off-topic in LKML, you need to go to gcc mailing list.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc compiler modification to cater for new programming language
2012-06-10 2:18 ` Cong Wang
@ 2012-06-12 7:06 ` Chris Jones
2012-06-13 11:38 ` Bernd Petrovitsch
0 siblings, 1 reply; 5+ messages in thread
From: Chris Jones @ 2012-06-12 7:06 UTC (permalink / raw)
To: linux-kernel; +Cc: Cong Wang
Cong Wang wrote:
> On Sun, Jun 10, 2012 at 10:02 AM, Chris Jones<chrisjones@spin.net.au> wrote:
>> Is it possible to modify the source code of gcc to enable to compilation of
>> a completely new programming language, as yet unrecognized? How much of a
>> big job would I be looking at for such a task?
> 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
there as a front-end has nothing to do with the functionality of gcc.
Explain to me why you would suggest this? Curious.
I am aware it is off-topic and have also brought it up on the gcc
mailing list, thanks.
Regards
--
Chris Jones
OpenSUSE Linux x86_64 (PC)|Android (Smartphone)|Windows x86 (Gaming!)
Kernel developer|Lead Developer of SDL|Lead Developer of Nest Linux|Gamer and Emulator nut|Web Services|Digital Imaging Services
Controllers: Rapier V2 Gaming mouse|Logitech Precision|PS3 controller|XB360 controller|Logitech Attack 3 j/stick
Emulators: Fusion|Gens|ZSNES|Project64|PCSX-R|Stella|WinVICE|WinUAE
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc compiler modification to cater for new programming language
2012-06-12 7:06 ` Chris Jones
@ 2012-06-13 11:38 ` Bernd Petrovitsch
0 siblings, 0 replies; 5+ messages in thread
From: Bernd Petrovitsch @ 2012-06-13 11:38 UTC (permalink / raw)
To: Chris Jones; +Cc: linux-kernel, Cong Wang
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc compiler modification to cater for new programming language
2012-06-10 2:02 gcc compiler modification to cater for new programming language Chris Jones
2012-06-10 2:18 ` Cong Wang
@ 2012-06-10 8:31 ` Lukasz
1 sibling, 0 replies; 5+ messages in thread
From: Lukasz @ 2012-06-10 8:31 UTC (permalink / raw)
To: linux-kernel
(apologies for total cut of quoting, gmane poster has
one insane limitation...)
WHy does it have to be GCC always ???
http://wiki.freepascal.org/linux/kernel/module_development#Building_kernel_modules_.28for_fun.29_thread
Sadly I stopped at having printk working and never moved forward. But there is
potential, I think.
L.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-13 11:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-10 2:02 gcc compiler modification to cater for new programming language Chris Jones
2012-06-10 2:18 ` Cong Wang
2012-06-12 7:06 ` Chris Jones
2012-06-13 11:38 ` Bernd Petrovitsch
2012-06-10 8:31 ` Lukasz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox