Skip to main content
gamedev.net
🔒 Locked

java c compiler

Started by Mr Whippy 3 replies 300+ views
Original Post
Mr Whippy
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.
Qw3r7yU10p!
Qw3r7yU10p!
OrangyTang, that''s not what Mr Whippy was asking

99 flake please
George2
George2
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
"THE INFORMATION CONTAINED IN THIS REPORT IS CLASSIFIED; DO NOT GO TO FOX NEWS TO READ OR OBTAIN A COPY." , the pentagon
Oluseyi
Oluseyi
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.