181k views
2 votes
Assume there is a Mac and a HP computer each has an Intel microprocessor. Would an assembly program produced using the Mac computer run on the HP computer? Justify your answer.

User Rambo
by
5.2k points

1 Answer

4 votes

Answer:

Yes and No.

Step-by-step explanation:

Starting by writing a small assembly program and then embedding it in a larger executable would run on the HP computer. However, the problem comes in if you are trying to write a stand-alone executable binary. The nitty-gritty of the interactions between the CPU and the OS does not matter in this case. What matters the most is the assembly program and not the architecture. As long as you have similar assemblers and architectures in use, the program should be able to run

User Teemu Leisti
by
5.3k points