How to convert C++ Code to C
There is indeed such a tool, Comeau’s C++ compiler. . It will generate C code which you can’t manually maintain, but that’s no problem. You’ll maintain the C++ code, and just convert to C on the fly.
There is indeed such a tool, Comeau’s C++ compiler. . It will generate C code which you can’t manually maintain, but that’s no problem. You’ll maintain the C++ code, and just convert to C on the fly.
It may not be an easy problem. Determining how to map classes defined in Python into types in Java will be a big challange because of differences in each of type binding time. (duck typing vs. compile time binding).
It’s possible to do anything given enough time, money and resources. Is it practical? Beyond trivial examples not really. Or rather it depends on what constitutes an acceptable error rate. The real problem is that the idioms are different in Java to C++. Java to C# for example would actually be far easier (because the … Read more