Archived

This topic is now archived and is closed to further replies.

Mr Whippy

java c compiler

Recommended Posts

here''s a question that just evolved in the office. you know how these things happen on a friday. would it be significantly more difficult to write a c compiler in java or a java compiler in c. ie, are there any language specific features missing from either language which would be required to implement a compiler for the other language.

Share this post


Link to post
Share on other sites
java source -> bytecode is minimal amount of work compared to C -> native code, since alot of the fancier features in java (polymorphism etc.) are performed by the JVM. IMHO, this is probably considerably easier..

Share this post


Link to post
Share on other sites
quote:
Original post by Mr Whippy
here''s a question that just evolved in the office.
you know how these things happen on a friday.

would it be significantly more difficult to write a c compiler in java or a java compiler in c.

ie, are there any language specific features missing from either language which would be required to implement a compiler for the other language.


short anwser :
No

long answer :
No

Share this post


Link to post
Share on other sites