|
Authored by: Anonymous on Monday, April 23 2012 @ 04:43 AM EDT |
There are computers that run Java bytecode directly.
They may not have been physically built, but they are certainly possible to be
built.[ Reply to This | Parent | # ]
|
|
Authored by: Anonymous on Monday, April 23 2012 @ 05:35 AM EDT |
Computers execute machine code. Languages exist to create a layer of
abstraction between the machine code and the user. In order for a computer to
execute programs written in a language (such as Java), some sort of translation
must occur. The translation can be a compiler, an interpreter, or a just-in-time
(JIT) compiler as is the case with Java.
Sure
In any
case, the language is implemented as a PROGRAM on some platform that runs
machine code.
A language is not a program. A program might be
written in a language. And a program might function to translate from one
language (e.g. Java) to another (e.g. machine code) either executing it as it
goes (as interpreters or JITs -- the distinction is largely an implementation
detail) or stored (as compilers). But the language is not a software program. In
language theory "a language" is defined to be the (for most languages infinite)
set of all programs expressible in that language.
There are no CPUs
that run Java code natively. They need other programs to translate the Java code
into their native machine code.
Many CPUs translate the "machine
code" into "microcode" for execution, so the "machine code" really isn't machine
code. But all that is quite irrelevant for this thread. [ Reply to This | Parent | # ]
|
|
Authored by: RMAC9.5 on Monday, April 23 2012 @ 12:04 PM EDT |
It is a specific instance of the Java language just like a poem or a story is a
specific instance of what ever language it is written in.[ Reply to This | Parent | # ]
|
|
|
|
|