Just wondering Sun JVM written in C/C++. How come Java Faster than C or C++?
Lloyd On 1/28/08, Ian Darwin <[EMAIL PROTECTED]> wrote: > > Aloysius Thevarajah Lloyd wrote: > > http://java.sys-con.com/read/45250.htm is a interesting Article. Thank > you > > Ian. The article is Compare Java vs C++ not C. > > > > I think JVM written in C. May Be I am wrong. > > A JVM can be written in any language: C, C++, Perl, Ruby, ASM, ... There > are even some written in Java (see for example > http://javapathfinder.sourceforge.net/). There is an abstract > specification for the JVM (free download from Sun) if anybody else wants > to take a crack at it. You'd need to be on crack to try it from scratch, > though, unless you just won this week's 6/49 draw. > > That said, Sun's reference implementation of the JVM is written in C and > C++. You can download the source and see for yourself - it's available > now under the GPL. > > Ian > -- Lloyd Tel:416-500-8014
