Re: Mac OS X / FreeBSD ASM Resources
- From: Cromulent <spamtrap@xxxxxxxxxx>
- Date: Fri, 16 May 2008 08:05:12 +0100
On 2008-05-15 09:05:25 +0100, Frank Kotler <spamtrap@xxxxxxxxxx> said:
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
Thanks for the help everyone. I'll definately check out the ASM website at Sourceforge and the HLA stuff. I guess I can study the output of HLA code and see what is what as well as using online sites.
Maybe I should write a blog detailing my progress if there is so little information? Makes it extremely difficult for beginners to get going.
--
"I disapprove of what you say, but I'll defend to the death your right to say it." - Voltaire
.
- Follow-Ups:
- Re: Mac OS X / FreeBSD ASM Resources
- From: Robert Spykerman
- 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
- Re: Mac OS X / FreeBSD ASM Resources
- From: Frank Kotler
- Mac OS X / FreeBSD ASM Resources
- Prev by Date: Re: 640x512x16bpp with VESA ?
- 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
|