![]() It looses the portability of Java and would not gain the efficiency of C (except that it would be compiled to native code, but it would be better to compile the machine code directly from the Java). However, I see no reason to perform a conversion like this. The process would be time consuming, but no AI should be required. This conversion no small task since the Java libraries are large. The actual converter would have to convert all the imported Java libraries (and their imported libraries and so on.) which means you would need the source code for everything. Once I had a grasp on basic structures, like how Java Objects can be mapped onto C structures (struct) and how pretty much everything in Java is an Object including arrays, I might peek at the Open JDK source code. The reason I would start here is that it becomes fairly obvious how parts of Java may be implemented in C. The JNI is a part of java which allows it to be used with C and C++. JC is a Java virtual machine implementation that converts class files into C source files using the Soot Java bytecode analysis framework, compiles them with GCC, and loads them using a built-in ELF object loader. I would start by taking a good look at the Java Native Interface (JNI). In other words Swing and AWT should not be a big problem. ![]() Remember you need to convert the language, If you do that, the required libraries can be converted by your new compiler.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |