Apress / low-level-programming

Source code for 'Low-Level Programming' by Igor Zhirkov
http://www.apress.com/9781484224021
Other
768 stars 200 forks source link

error when run on Mac #59

Open helmishariff opened 6 years ago

helmishariff commented 6 years ago

I tried to run hello.asm. I can compile & build on my Mac but get error message when run it. Error: Bus error: 10

sayon commented 6 years ago

Hello! Unfortunately I can not support Macs because I do not have one. Assembly programs written for Linux do not work on Mac out of the box and require a little more fine tuning.

The simplest solution would be to get a virtual machine like this one (minimal) or this one (with desktop environment). You can access it through SSH to make use of a bigger screen capabilities.

If you prefer to trade a little more trouble for a possibility to test assembly code directly in your host OS, check these notes:

I would recommend the first path for a start, because you will probably have to dive into such things as position-independent code