Re: Mac OS X / FreeBSD ASM Resources
- From: Frank Kotler <spamtrap@xxxxxxxxxx>
- Date: Thu, 15 May 2008 08:05:25 GMT
Cromulent wrote:
....
Linux differs rather alot from Mac OS X which is pretty much exactly the same as FreeBSD is terms of ASM
http://www.freebsd.org/doc/en/books/developers-handbook/
Chapter 12 covers assembly language...
You'll be using "-f macho" instead of "-f elf" for Mac OSX, if you're using Nasm. One minor difference I'm aware of - "-f elf" allows arbitrary section names, "-f macho" knows only .text, .data, and .bss. Shouldn't be a problem.
The URL for Nasm in the FreeBSD handbook is out-of-date. http://nasm.sf.net - or part of a package called "Xcode" (or similar) for Mac...
Despite the name, the "linuxassembly.org" (a.k.a. asm.sf.net) link that Nathan gave you has info for BSD. In particular, the "asmutils" macros will emit BSD code, given the proper defines. This "should" work on Mac OSX, too.
Let us know how it goes. As you point out, it's not a well-documented area, so any information we can share is a Good Thing!
Best,
Frank
.
- Follow-Ups:
- Re: Mac OS X / FreeBSD ASM Resources
- From: H. Peter Anvin
- Re: Mac OS X / FreeBSD ASM Resources
- From: Cromulent
- Re: Mac OS X / FreeBSD ASM Resources
- References:
- Mac OS X / FreeBSD ASM Resources
- From: Cromulent
- Re: Mac OS X / FreeBSD ASM Resources
- From: nbaker2328
- Re: Mac OS X / FreeBSD ASM Resources
- From: Cromulent
- Mac OS X / FreeBSD ASM Resources
- Prev by Date: Re: Mac OS X / FreeBSD ASM Resources
- Next by Date: Re: 640x512x16bpp with VESA ?
- Previous by thread: Re: Mac OS X / FreeBSD ASM Resources
- Next by thread: Re: Mac OS X / FreeBSD ASM Resources
- Index(es):
Relevant Pages
|