Jump to content
  • Advertisement

Archived

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

Mr Whippy

java c compiler

This topic is 5795 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
It''d be faster to write them both in Perl anyway. It just might not run as fast at code generation, but it''ll smoke them in source parsing.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!