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.