Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 29th, 2005, 11:36 AM   #1
HaCkeR
Hobbyist Programmer
 
HaCkeR's Avatar
 
Join Date: Nov 2005
Location: UK
Posts: 131
Rep Power: 0 HaCkeR is an unknown quantity at this point
Send a message via AIM to HaCkeR Send a message via MSN to HaCkeR
Is It Possible?

I was thinking we spend along time downloading all of the different compilers for the different languages. But surely it is possible with all of the great programmers here to write a kind of "Super Compiler". Basicaly it can read all of the different languages. Is It Possible?
HaCkeR is offline   Reply With Quote
Old Nov 29th, 2005, 11:37 AM   #2
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
Yeah, it is possible, but why should you need such a compiler?
Polyphemus_ is offline   Reply With Quote
Old Nov 29th, 2005, 11:47 AM   #3
HaCkeR
Hobbyist Programmer
 
HaCkeR's Avatar
 
Join Date: Nov 2005
Location: UK
Posts: 131
Rep Power: 0 HaCkeR is an unknown quantity at this point
Send a message via AIM to HaCkeR Send a message via MSN to HaCkeR
Well me not as much at the moment caus im new but
the people who know more than 1 language would find it
easyer to use than having to open all different programs
but maybe im wrong
HaCkeR is offline   Reply With Quote
Old Nov 29th, 2005, 12:39 PM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Quote:
Originally Posted by HaCkeR
I was thinking we spend along time downloading all of the different compilers for the different languages. But surely it is possible with all of the great programmers here to write a kind of "Super Compiler". Basicaly it can read all of the different languages. Is It Possible?
In theory, yes. The GCC project, for instance, has compilers for C, C++, Java and Fortran. I suspect some common code is interchanged between these compilers. To make a 'supercompiler', you could just stick the four separate compilers together.

But what would be the point? You'd end up with a compiler far bigger than one that handled a single language, with little to no advantages.

Further, it would be very hard (perhaps impossible) to create a compiler for all different languages, as some programming languages can't be easily compiled.
Arevos is offline   Reply With Quote
Old Nov 29th, 2005, 12:50 PM   #5
HaCkeR
Hobbyist Programmer
 
HaCkeR's Avatar
 
Join Date: Nov 2005
Location: UK
Posts: 131
Rep Power: 0 HaCkeR is an unknown quantity at this point
Send a message via AIM to HaCkeR Send a message via MSN to HaCkeR
maybe be not all but if one was created i think it would just be easyer than having sifferent programs but like i said maybe im wrong. i just wondered
HaCkeR is offline   Reply With Quote
Old Nov 29th, 2005, 2:58 PM   #6
teencoder
Hobbyist Programmer
 
teencoder's Avatar
 
Join Date: Jul 2005
Posts: 158
Rep Power: 0 teencoder is an unknown quantity at this point
It would be nice as I could use many languages interchangably for instance you could use C++, java, and all the other languages. However it would be extremely hard.
__________________
Geeks may not be cool now but in the long run they prosper.
teencoder is offline   Reply With Quote
Old Dec 1st, 2005, 4:29 AM   #7
BadBit
Programmer
 
BadBit's Avatar
 
Join Date: Oct 2005
Location: UK, South West
Posts: 33
Rep Power: 0 BadBit is on a distinguished road
Yeah, thinking about this it is possable to just have one huge compiler (hide this from M$) you could specifie what language your using for each code segment.
eg,
<@main body in subset language>
<:java>
.....
</:java>
<:c++>
....
</:c++>
__________________
The GNU documentation says that this bit is set when the stream is "unusable". Presumably the intent is that once this bit becomes set, all bets are off on that stream forever.
BadBit is offline   Reply With Quote
Old Dec 1st, 2005, 5:51 AM   #8
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Quote:
Originally Posted by BadBit
Yeah, thinking about this it is possable to just have one huge compiler (hide this from M$) you could specifie what language your using for each code segment.
But again, what would be the point? How would the different sections of code communicate? You'd need some sort of vast compatibility layer that would inevitably be a least-common-denominator affair, and I'm not sure how useful that would be.
Arevos is offline   Reply With Quote
Old Dec 1st, 2005, 7:35 AM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I already have this huge, multi-language compiler. I tell it which language I want by clicking on the appropriate icon. Woiks like a champ.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 1st, 2005, 8:33 AM   #10
Nebula
Hobbyist Programmer
 
Nebula's Avatar
 
Join Date: Oct 2005
Posts: 193
Rep Power: 3 Nebula is on a distinguished road
Send a message via AIM to Nebula
Dont most Linux distros like Fedora Core and Slackware come with a Multi Language compiler?
__________________
When will Jesus bring the porkchops?
Nebula is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:21 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC