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


Stan Shebs <shebs@apple.com> writes:

> You're not the first person to suggest the separate tool idea! It
> would have to know types and decls well enough to come up with the
> right constraint letters. Take a look at MacMAME sources to see
> some hairy usage of CW inline asm; much of it is assembled from
> combinations of macros.

Macros are not an issue, as the tool would be operating on
preprocessed source code (one way or another).

As far as types go, does it really have to know anything beyond
"integer of size X" or "floating point of size X" or "pointer"?  I
guess if you want to do Altivec code right it would have to know
"vector of N integers of size X".  I think those can be parsed without
enormous difficulty.

Naturally you have thought about this far more than I have, and I'm
sure that you have already had much of this discussion.  But having it
come up again now is pretty much unavoidable.

Ian


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