|
Re: C-Macro + ARM Assembly: msg#00119linux.ports.arm.general
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: J.A.K.Mouw@xxxxxxxxxxxxxx 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. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Changing CPU speeds in iPAQ running Linux: 00119, Erik Mouw |
|---|---|
| Next by Date: | Re: glibc2.2.4 link error: 00119, 张韬 |
| Previous by Thread: | Re: C-Macro + ARM Assemblyi: 00119, Russell King - ARM Linux |
| Next by Thread: | glibc2.2.4 link error: 00119, 张韬 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |