Re: Assembly macros with Gcc
Re: Assembly macros with Gcc
- Subject: Re: Assembly macros with Gcc
- From: Jonas Maebe <email@hidden>
- Date: Thu, 5 Feb 2004 12:44:26 +0100
On 4 feb 2004, at 22:45, Jonas Maebe wrote:
Ok. This comes from a 80x86 gnu assembler file, but I guess the syntax
is the same under Mac OS X:
One final remark in this thread: you can also use regular cpp-style
macro's in assembler files, as long as the assembler file is
preprocessed by cpp before it's passed to as (duh). To make gcc do
this, either name the file .S instead of .s (at least that's required
under Linux, under Mac OS X it seems that's not necessary), or add "-x
assembler-with-cpp" to gcc's command line options. Next, "compile" the
assembler file using gcc instead of using as.
Jonas
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.