This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Request for discussion: Rewrite of inline assembler docs
- From: Andrew Haley <aph at redhat dot com>
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 27 Feb 2014 11:07:21 +0000
- Subject: Request for discussion: Rewrite of inline assembler docs
- Authentication-results: sourceware.org; auth=none
Over the years there has been a great deal of traffic on these lists
caused by misunderstandings of GCC's inline assembler. That's partly
because it's inherently tricky, but the existing documentation needs
to be improved.
dw <limegreensocks@yahoo.com> has done a fairly thorough reworking of
the documentation. I've helped a bit.
Section 6.41 of the GCC manual has been rewritten. It has become:
6.41 How to Use Inline Assembly Language in C Code
6.41.1 Basic Asm - Assembler Instructions with No Operands
6.41.2 Extended Asm - Assembler Instructions with C Expression Operands
We could simply post the patch to GCC-patches and have at it, but I
think it's better to discuss the document here first. You can read it
at
http://www.LimeGreenSocks.com/gcc/Basic-Asm.html
http://www.LimeGreenSocks.com/gcc/Extended-Asm.html
http://www.LimeGreenSocks.com/gcc/extend04.zip (contains .texi, .patch,
and affected html pages)
All comments are very welcome.
Andrew.