| | |
An implementation idea requied in Compiler Interface
![]() |
•
•
Join Date: Dec 2007
Posts: 13
Reputation:
Solved Threads: 0
I want to know how can we interface compilers so that we can mix up many languages together but still the code should work.
One of my thoughts is, if there is any code in C allthose codes must be taken apart and must be compiled by C compiler and if there is any code in Java it must be taken apart and must be compiled separately. The laguages must be able to pass the result between them and output screen must be same for all.
So code like this must work:
[code]
#include<stdio.h>
void main()
{
system.out.println("HAI");
}
[\code]
It looks crazy but if possible answer it...
One of my thoughts is, if there is any code in C allthose codes must be taken apart and must be compiled by C compiler and if there is any code in Java it must be taken apart and must be compiled separately. The laguages must be able to pass the result between them and output screen must be same for all.
So code like this must work:
[code]
#include<stdio.h>
void main()
{
system.out.println("HAI");
}
[\code]
It looks crazy but if possible answer it...
I don't know if it's any help but it won't hurt :
http://www.amazon.com/Expert-NET-2-0...d=L6872TYA346B
Most compilers under Visual Studio compile to this intermediate language, be it Java, C++, C or C# or other.
http://www.amazon.com/Expert-NET-2-0...d=L6872TYA346B
Most compilers under Visual Studio compile to this intermediate language, be it Java, C++, C or C# or other.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
If you really want to, you could write C libraries that mimic java code, as well as many other languages. It would work best in C++ however, which provides a lot of functionality for class-based designs. Most important here, i would think, is operator overloading.
Last edited by death_oclock; Jan 13th, 2009 at 8:22 pm.
![]() |
Other Threads in the C Forum
- Previous Thread: func return 2 values
- Next Thread: Help with grep
| Thread Tools | Search this Thread |
#include adobe api array arrays asterisks binarysearch calculate char cm copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createcopyoffile createprocess() csyntax database directory dynamic feet fflush fgets file fork forloop frequency getlasterror givemetehcodez global graphics gtkgcurlcompiling hacking highest homework i/o inches include incrementoperators input interest kernel kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. match matrix meter microsoft mqqueue mysql number odf open openwebfoundation owf pattern pdf performance pointer posix probleminc process program programming pyramidusingturboccodes radix read recursion recv repetition research scanf scheduling segmentationfault send sequential shape socket socketprograming socketprogramming stack standard string systemcall turboc unix user voidmain() wab win32api windows.h






