Muhammad Maqsoodur Rehman
Muhammad Maqsoodur Rehman

Reputation: 34257

Machine Dependent versus Machine Independent languages

Why might you want to write a program in a machine independent language instead of a machine- dependent language? Why might a machine-dependent language be more appropriate for writing certain types of programs?

Upvotes: 0

Views: 9520

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038810

In order to write a program in a machine independent language there must be something on this machine that will convert this language to a machine specific language (machines can read only machine language). The pros of this is that this something could perform optimizations for the specific machine it is running on which you won't be capable of doing in your machine dependent language as it is quite difficult to cover all the different machines your application could possibly run on.

Upvotes: 4

Related Questions