This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: inline assembler question
- To: Michael Sänger <michael at vulpine dot de>
- Subject: Re: inline assembler question
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 10 Apr 2001 18:22:45 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <3AD3031C.950676F1@vulpine.de>
On Apr 10, 2001, Michael Sänger <michael@vulpine.de> wrote:
> int function(int arg);
> {
> __asm__(" movl arg,%eax ");
> }
> doesn't work because the arg symbol isn't parsed as variable to the asm
> ...
You should read about extended asms in the GCC manual.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me