On Friday 11 November 2005 01:55 pm, Jerry Feldman wrote:
On Friday 11 November 2005 1:48 pm, Steven T. Hatton wrote:
Yes, the VM. You can fetch the Java implementation source (but please don't ask for a link, I don't remember where I found it.) I have it all on my harddrive. It's quite an impressive mix of C and C++. The very nitty-gritty stuff is written in C, proper, with the more structured stuff built in C++ on top of that.
Actually there are a number of JVMs (Sun, IBM, BEA, ...). The JVM itself needs to be somewhat platform dependent. It also needs to consider performance, and needs to be native. I would suspect that there would be very few lines of assembler as that really kills portability.
When I say there are a lot of asm calls, I am specifically referring to the platform specific parts of the sun JVM. As a percentage of the entire Java source tree, this is probably miniscule. If I get motivated, I'll try to fish out some of the source I'm talking about. Steven