Bernd Kreimeier wrote:
> 
> I am looking for a Linux tool to generate Java source
> from C. I am aware of C2J/C2J++. What I need would
> have to be used repeatedly - the code will be
> maintained in C. Changing the C code once to match
> converters restrictions is feasible.
> 
> Short of hacking C2J++ - any recommendations?
> 
>                                                   b.

It's not possible. They have mostly the same syntax,
but the semantic of languages has about nothing
common. Don't even think port C program to java
without complete redesign of basic programs
structures and data.
Also, support libraries (libc.so and java.* packages)
are too different, and this means even more
for program change (in case of automatic
conversion).
C sources may be a good tutorial and/or documentation
and/or example how to solve the task, but
simple translating of even middle-colmplex
program without redesign will lead to
_very_ slow and inefficient java program.

Regards
  Maxim Kizub

Reply via email to