This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MS/CW-style inline assembly for GCC
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Mike Stump <mrs at apple dot com>
- Cc: Stan Shebs <shebs at apple dot com>, gcc at gcc dot gnu dot org
- Date: Thu, 06 May 2004 19:37:21 -0700
- Subject: Re: MS/CW-style inline assembly for GCC
- Organization: CodeSourcery, LLC
- References: <D3403800-9FCB-11D8-B20E-003065A77310@apple.com>
Mike Stump wrote:
On Thursday, May 6, 2004, at 06:40 PM, Mark Mitchell wrote:
If Apple checks in these extensions, in any way that touches code
outside of darwin.[hc],
Then lets explore ways in which we can architect the code so that we
can achieve this extension in such that it doesn't. If we can manage
to find a way, we all win. We can simply require that Stan do all the
work and come up with a lean thin interface down into port files. If
he can, we're set, if not, Apple local it is.
Does that sounds reasonable?
Yes. I don't think people could much object to a nice clean
Darwin-specific patch (with appropriate documentation of course).
(And, if you succeed in doing that you'll have no problem maintaining it
off on the side if you really need to do that. :-))
Here's an implementation suggestion: add "MD_SRC_REORG" which gets
called at program start-up and replaces the input file with a new input
file. Have MD_SRC_REORG for Darwin invoke a separate CW-asm-to-GCC-asm
converter program. :-) :-)
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com