|
From: Greg P. <gp...@ap...> - 2009-02-26 19:41:26
|
On Feb 26, 2009, at 9:54 AM, Bart Van Assche wrote: > On Thu, Feb 26, 2009 at 3:47 AM, Nicholas Nethercote > <n.n...@gm...> wrote: >> On Wed, Feb 25, 2009 at 5:56 PM, Bart Van Assche >> <bar...@gm...> wrote: >>> On Wed, Feb 25, 2009 at 3:50 AM, Nicholas Nethercote >>> <n.n...@gm...> wrote: >>>> x86/Linux assembly code and x86/Darwin assembly code appear to be >>>> different dialects. Some of the tests in none/tests/x86/ and >>>> memcheck/tests/x86/ compile on x86/Darwin, eg. >>>> memcheck/tests/bug152022. But some don't, eg. pushfpopf, because >>>> x86/Darwin assembler doesn't accept the .type and .size options. >>>> >>>> The easiest thing to do is move the ones that don't compile on >>>> Darwin >>>> into an x86-linux/ directory. Anyone have any strong opinons about >>>> this, or other insights? >>> >>> Which standards apply to x86 assembler syntax ? >> >> I'm not sure that there are any. This seems to be the definitive >> documentation on Mac/x86 assembly: >> >> http://developer.apple.com/DOCUMENTATION/DeveloperTools/Reference/Assembler/index.html > > Does this mean that gcc on Darwin does not use gas but another > assembler ? Is the gcc command-line option -mgas supported by gcc on > Darwin ? That's correct, Darwin uses its own home-grown assembler. I don't know of any GAS support for Mach-O, and -mgas is not supported. -- Greg Parker gp...@ap... Runtime Wrangler |