designerswhe.blogg.se

C to java converter
C to java converter










Some experimental JVM implementations may be improved to generate (compile to) unreadable C code. This is not easily feasible in standard C++. Java is often garbage collecting unreachable code. See also the C++ dlopen minihowto on Linux. POSIX has dlopen and dlsym to load more code. In standard C++ the code is defined at compile time. Java requires a dynamic class loader (so the code can be extended at runtime). Java object model requires a single class for every object, and the class is a Java object. That rule has no simple equivalent in Java (or the JVM). Even smart pointers (with reference counters) won't usually deal easily with circular references.Ĭ++ wants the rule of five to be respected. Which deals with circular references.Ĭ++ requires manual memory management. Java (and the JVM) requires a garbage collector. Java and C++ are too different for that to be possible: It might not have worked for some other users. My answer is based on my experience, I am not affiliated to TanglibleSoftware by any means, the above software worked for me, with some efforts made. Machines can only understand code, but meaning has to be construed by Humans.īut this may not be constrained if we consider artificial intelligence into this context or some 'xyz' technology in near future. I will not go into syntactic differences between Java & C++, but if one has a good grasp on programming then for unsupported constructs of language 'X', code can always be written to perform those operations in language 'Y' successfully. But for some language constructs which are only supported in Java but not in C++, some work around is surely needed.Ĭonsider case: User 'A' hands over his source code to program 'ABCD' for conversion from language 'X' to 'Y', and he assumes to get the result(exact converted code with same behavior) in bare minimal efforts, then user 'A' is calling for a failure. Firstly, when it comes to conversion from language 'X' to language 'Y', then no program can beat human intentions/efforts.įor the above case Java to C++ conversion can be done using programs such as TanglibleSoftware.












C to java converter