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: Robert Dewar <dewar at gnat dot com>
- To: Stan Shebs <shebs at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 04 May 2004 09:26:02 -0400
- Subject: Re: MS/CW-style inline assembly for GCC
- References: <4096C4A0.8030000@apple.com>
Stan Shebs wrote:
One of the long-notorious features of GCC has been its inline assembly
extension for C-dialect languages. The extension is both logical and
powerful, giving programmers a high degree of control over how the
assembly instructions are to be integrated and optimized within the
instruction stream, for instance by using the compiler's own
constraint letters to express preferred locations for data.
I agree that the use of this facility in GCC is very difficult due
to the lack of appropriate documentation at an appropriate semantic
level (you can't tell C++ and Ada programmers that they have to dig
into internals of GCC :-)
However, I am dubious about fixing it by adding a complete new
facility, instead it would be good to provide the missing documentation.