Can any generated exe run or depend on the platform that was made?

Asked

Viewed 115 times

2

I got some files from DOS operating system with extension .exe and ran them on a virtual machine and DOSBOX emulator. Then I tested them on a physical machine. The result between both: physical machine, virtual machine and "machine" of the emulated type was the same.

They opened and ran the file

With the sources compiled on the virtual machine Virtualbox had several files to work with. It worked in a similar way and even similar to the physical machine and also in the emulated machine. However, its instructions were not the same of both. It was not the same code as the physical machine or emulated machine. It had a huge difference. However, it worked.

I’ve seen some articles, find out about Turing and the history of his machine.

Why Linux cannot run natively by calling Virtualbox or among other emulated machines, files .exe and run them? I read about Wine and tested. It does not run some games I want. DOSBOX has some files that do not run and others that run.

  • Did the answer solve your question? Do you think you can accept it? See [tour] if you don’t know how you do it. This would help a lot to indicate that the solution was useful to you. You can also vote on any question or answer you find useful on the entire site

1 answer

3

Depends on the platform. An executable is a set of instructions that determine what the machine should do, so if it uses instructions that a platform doesn’t understand won’t work. It’s like saying that you can come to Japan and be understood. It won’t. Each with their own way.

There are even techniques to make this happen, but it’s an abstraction layer and a set of tools that will make it possible, i.e., it’s like you have a Portuguese-Japanese translator.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.