News for hackers. Stuff that matters.
Re:"Hello, world" in Assembly. by zppx on Sunday September 05, 2010 @01:02AM (#1664032)
If you test it under OS X you need to use the OpenBSD/NetBSD instructions using the FreeBSD code but you will use a 'macho' object file.
Re:"Hello, world" in Assembly. by zaa on Sunday September 05, 2010 @07:03AM (#1664339)
Yep, "nasm -f macho hello.s && ld -e _start -o hello hello.o" did the trick for me on Mac OS X 10.6
Re:"Hello, world" in Assembly. by alnayyir on Sunday September 05, 2010 @05:15AM (#1664261)
I take it you mean Mach-O?

Mach-O is mach microkernel object format.

http://en.wikipedia.org/wiki/Mach-O

In general, BSD assembler tends to be pretty stack heavy for cultural/engineering reasons. I don't think it ultimately matters all that much if you're fiddling around on your personal machine.

Re:"Hello, world" in Assembly. by ant5 on Sunday September 05, 2010 @11:45PM (#1665791)
In general, BSD assembler tends to be pretty stack heavy for cultural/engineering reasons. I don't think it ultimately matters all that much if you're fiddling around on your personal machine.

I'm not sure I follow?