Apress / low-level-programming

Source code for 'Low-Level Programming' by Igor Zhirkov

Home Page:http://www.apress.com/9781484224021

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error when run on Mac

helmishariff opened this issue · comments

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

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