Named asm operands

John Dyson dyson@iquest.net
Mon May 7 12:01:00 GMT 2001


Lovely -- that is a major nice thing...

John
----- Original Message ----- 
From: "Espen Skoglund" <esk@ira.uka.de>
To: <gcc-patches@gcc.gnu.org>
Sent: Monday, May 07, 2001 6:10 AM
Subject: Named asm operands


> Hi,
> 
> The response I got on this list when I asked for having more operands
> in asm constructs was that one really wants to have named operands.
> So, I went along and extended the asm constructs a bit.  Using the
> patch attached below, one can now write asm constructs like:
> 
>     asm ("  popfl  %[flags]           \n"
> "  movl   %[pgtab], %%cr3    \n"
> : [flags] "=rm"(eflags)
> : [pgtab] "r");
> 
> The patch also sets max number of operands to minimum 30 (that was the
> reason I added this stuff in the first place).  As I started doing my
> additions I realized that I needed more changes to gcc than
> anticipated.  Anyhow, I believe I managed to get all the necessary
> stuff in there making as few modifications as possible.
> 




More information about the Gcc-patches mailing list