On Fri, Apr 19, 2002 at 12:29:32AM +0100, Russell King - ARM Linux wrote:
> On Thu, Apr 18, 2002 at 03:23:10PM -0700, Wayne Yen wrote:
> > I am interested in writing the ARM assembly as C-Macro.
> > I've tried to look at the #define __save_flags_cli(x) in system.h and am
> > able to guess what it means, I'd appreciated if someone can point me to
> > any documentation detailing the syntax.
> 
> info gcc
> /constraints
> 
> As a starter, the general syntax is:
> 
> asm("<<asm code>>" :
>     "output constraint" (variable) ... :
>     "input constraint" (variable) ... :
>     "clobber list")

The Kernelnewbies links page has two pointers to inline assembly. They
are focused on i386, but it's applicable to ARM as well. See:

  http://www.kernelnewbies.org/links/

Just search for "assembly".


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/

_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
http://www.arm.linux.org.uk/armlinux/mailinglists.php
Please visit the above addresses for information on this list.

Reply via email to