ishan3243
ishan3243

Reputation: 1928

Advantage of intermediate representations after compilation

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!!

Upvotes: 1

Views: 527

Answers (3)

Yasa
Yasa

Reputation: 332

Write once - Use anywhere

that's a principal of java Bytecode

Upvotes: 0

Juned Ahsan
Juned Ahsan

Reputation: 68715

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.

Upvotes: 1

Rhys
Rhys

Reputation: 1491

So that you don't need to write the code for every platform.

Upvotes: 2

Related Questions