This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MS/CW-style inline assembly for GCC


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]