Skip to content

Questions About The Java Compiler And Java Virtual Machine?

1. What language are they written in? Are they written in C?
2. To make Java work on Macs, Linux, and Windows, is there a version of the VM written for each platform, or do only certain things change in the source code?

Related posts:

  1. Ok, So In Your Own Words, What Is Jvm (java Virtual Machine) Exactly Dose?
  2. What Is Meant By Java Virtual Machine(jvm)?
  3. What Is Java Virtual Machine?
  4. What Is The Difference Between The Compiler(or Interpreter) Of Java And Javascript?
  5. Short Note On Java Virtual Machine?

2 Comments

  1. deonejua wrote:

    The JVM is written in C as a stack architecture ….
    “The aim is binary compatibility. Each particular host operating system needs its own implementation of the JVM and runtime. These JVMs interpret the byte code semantically the same way, but the actual implementation may be different. More complicated than just the emulation of bytecode is compatible and efficient implementation of the Java core API which has to be mapped to each host operating system.”
    The variance is not only for hardware compatibility but also to maximize the java API per platform.
    Other API can handshake the JVM such as JOGL to accomplish a thin layer programming OpenGL. C++ enters the picture here.
    To view JVM code requires registration with Sun.

    Saturday, June 6, 2009 at 2:45 am | Permalink
  2. 1)Javac is the primary Java compiler, included in the Java Development Kit (JDK) from Sun Microsystems.
    The compiler accepts source code conforming to the Java language specification (JLS) and produces bytecode conforming to the Java Virtual Machine Specification (JVMS).
    javac is itself written in Java. The compiler can also be invoked programmatically.
    2)Answer one tells half of it..yet,The model used by a JVM accepts a form of computer intermediate language commonly referred to as Java bytecode.Java can be both middleware and a platform in its own right

    Saturday, June 6, 2009 at 7:05 am | Permalink

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*
Powered by Yahoo! Answers