This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Java to C through an intermediate assembly




On Tue, 20 Nov 2001, Hamdy Mobarak wrote:
> I am asking about if it is possible to convert java program to an
> intermediate assembly (say assembly of Intel microprocessor),

Sure... use the gcj -S switch to save assembler input.

> and then decompile this intermediate assembly to get the C version of
> the input java program?

No.  For one thing there is no effective way to decompile into C code.
For another, it is a misconception that there exists any "C version of the
input java program".  C and Java are different languages.  It isn't easy
to translate one to the other, and the result isn't very readable if you
succeed.

What is it that you are trying to do?

Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]