This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 586
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: 866
    
    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: 866
    
    5
A discussion in Stack OVerflow
Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 586
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why was java compiler written in C?
 
Similar Threads
Some Queries
Speed in Java
how was java written?
JVM as an OS instead of a VM ?
How does JDK work?