aspose file tools*
The moose likes Beginning Java and the fly likes Why was java compiler written in C? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why was java compiler written in C?" Watch "Why was java compiler written in C?" New topic
Author

Why was java compiler written in C?

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 670
Why was java compiler written in C?Why was it the choice for writing java compiler
thanks
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 905
    
    5
Was it? How do we know that?

The JVM must have been written in something, that is better portable among several platforms, as Java was intended to be portable and to be ported to several platforms.
What would have been your choice?

If you have a backing JVM you can write (at least portions of the) compiler even in Java.
You can theoretically write a working compiler (maybe step by step) on one platform, and put to use the resulting compiler classes on the other platforms, if the JVMs are available there.
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 905
    
    5
A discussion in Stack OVerflow
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 670
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why was java compiler written in C?