4 ms·
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.
by zppx 16y ago
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.
- alnayyir 16y agoI take it you mean Mach-O? Mach-O is mach microkernel object format. http://en.wikipedia.org/wiki/Mach-O 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.
- ant5 16y agoIn 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?
- zaa 16y agoYep, "nasm -f macho hello.s && ld -e _start -o hello hello.o" did the trick for me on Mac OS X 10.6