C2J translator
C2J is a translator which translates C programs to Java programs.
C2J is being developed using C language. But C2J is available as native executable
for Win32 platforms as well as Java application which runs where Java Virtual
Machine is implemented (i.e. on Win32, Unix etc.).
To produce Java version of C2J we just ran C2J sources through C2J itself and
now we have C2J as Java application. Other C programs which were succesfully trnaslated
from C to Java by C2J include PGP and YACC.
Beta versions of C2J are under GNU license. You can freely download C2J
C2J Features
- You develop your applications
using C language and when you need
your application as Java
application - you just run it through
C2J and get one. Class file which is
your C application translated to Java.
- Standard ANSI C runtime library
fully supported.
- ANSI C and K&R C fully supported
Installation and System Requirements
C2J requires JDK 1.1.1 or later. Latest version of 1.1.* JDK is recommended.
C2J also works on JDK 1.2 and 1.2.1 but it was not tested as much as it was
under JDK 1.1.*
In general the .bat files supplied with distribution do all the work on setting
up CLASSPATH etc. But in order for Java version of C2J and other converted C
programs to work the C2J runtime should be in CLASSPATH.
C2J has same architecture and same syntax as GNU C compiler. Some GNU C
options which have no meaning in context of transalting C programs to Java (like
-l option, processor architecture selection options etc.) are ignored.
|