CLR versus JVM
Question: Which platform is better suited as a target for different
programming language: the .NET common language runtime or the Java virtual
machine? Justify your answer.
Answer: see Comparison of Two Virtual Machines: CLR versus JVM
The CLR is better suited as a target for different programming language
because it supports a wider spectrum of concepts than the JVM, e.g.
- objects on the stack
- reference parameters
- varargs
- function pointers
- ...
The reason for this enhanced flexibility lies simply in the different
goals of the two platforms: the JVM aims to support one programming
language (Java) on as many platforms as possible, while the CLR has
been specifically designed to support a multitude of concepts from
many different programming languages.
|