On Monday 04 April 2011 01:19 AM, Bernd Petrovitsch wrote:
JVM has been optimised to such a level that it beats C++ in performance. Only thing faster than that is C and assembly language. A few chips process Java byte code at hardware level as well.Hi! On Mon, 2011-04-04 at 00:47 +0530, mohit verma wrote: [....] Read this http://en.wikipedia.org/wiki/Jazelle ... So this can't be a valid argument. The key thing over here is purpose. OOP based languages are essentially meant to abstract the developers from the hassles of low level operations (Assuming a programmer well versed with OOP) , so the focus is on application development. Java plays an important role in isolating low level hardware issues. That's why you have Java as a proffered choice for mobile apps and not C. If you are developing kernel, you are programming bare metal. You have to do low level operations like loading the program into the memory, defining it's data segment, code segment, etc. Hence C is the obvious choice since it's the closest to the hardware (meaning simple to deal low level operations) and well structured than assembly language. C++ has lots of features which make it awkward to use. For starters, think about the fact that Java does not have multiple inheritance. --
Cheers !!! Chaitannya follow me on twitter http://twitter.com/chaitannya I believe there's a hero in all of us who keeps us honest, gives us strength, makes us noble, and finally allows us to die with pride, even though sometimes we have to be steady, and give up the thing we want the most... even our dreams. - Spider Man 2 |
_______________________________________________ Kernelnewbies mailing list [email protected] http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
