views:

131

answers:

1

Hi,

I am following through the book Assembly Language Step by Step and it says the book is for computers running Linux. What are the necessary tools to use the book with Snow Leopard? Thanks.

EDIT: The book uses the Kate editor. So, preferable something that does the same thing as Kate.

+3  A: 

I haven't read the book you're looking at, but the amazon page says it focuses on the nasm assembler. If you don't want to adapt the examples to GNU as, nasm is available for OS X via DarwinPorts. Assuming you have an Intel Mac, things should go pretty smoothly. However, you may run into problems with executable file formats (OS X uses Mach-O, Linux has ELF), and some variations in system calls, etc.

If you have any specific questions, it might be useful for you to edit your post and add them.

Carl Norum
+1, don't underestimate the differences between assemblers. Try not to depend too much on system calls and executable formats.
Potatoswatter
I agree with @Potatoswatter; the easiest way to learn assembly is to write a little C program that handles all the command line arguments for you and then calls your assembly routines. It's a lot less grief than trying to make everything work from scratch.
Carl Norum
FWIW, nasm is included on the OS X developer tools disk with every Mac -- no need for DarwinPorts.
Stephen Canon