Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suggestions needed: Effective Java to C source code converter [closed]

I googled a bit but could not find any good Java to C source code converter.

My question is:

  1. Is this possible ?

  2. Are there any reliable Java to C src converter you can think of which I can have a look at?

like image 313
Rookie Avatar asked Nov 04 '22 00:11

Rookie


1 Answers

This is possible, but extremely difficult - for starters, you would need to integrate a garbage collector with your C source. There are a few projects that attempt this, e.g. Toba, but they're unreliable and no longer maintained. Usually you'll find somebody attempting something like this in their Master's thesis, after which it is quickly abandoned.

If you're doing this to try to speed up your program, then don't - Java is already pretty fast compared to natively compiled code (although it tends to use quite a bit more memory), and your translated C code is not going to be able to take full advantage of the C language.

like image 127
Zim-Zam O'Pootertoot Avatar answered Nov 08 '22 09:11

Zim-Zam O'Pootertoot