Whats the point of having an intermediate representation after compilation (for eg Java has bytecode) if you still have to design a separate software (JVM in this case) for every platform ? I mean platform dependency is still there!!
Asked
Active
Viewed 512 times
1
-
Write Once, Run Anywhere is the slogan. It should be Compile Once, Run Anywhere. – Peter Lawrey Oct 01 '13 at 15:55
3 Answers
1
Whats the point of having an intermediate representation after compilation (for eg Java has bytecode) if you still have to design a separate software (JVM in this case) for every platform ?
Because you don't have to re-write and re-compile it on all/different platforms. This is the beauty of java Write once run anywhere feature.
Being a developer I need not to worry which OS platform my code will run. I simply need to compile and provide the classes, which will be valid for all the platforms for the same java version.

Juned Ahsan
- 67,789
- 12
- 98
- 136
-
-
I was thinking since interpretation is slower, why isnt the bytecode converted to machine code via compilation? – ishan3243 Oct 01 '13 at 20:31