This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Inline assembly queries [2]
- From: kernel mailz <kernelmailz at googlemail dot com>
- To: linuxppc-dev at ozlabs dot org, gcc-help at gcc dot gnu dot org, linux-kernel at vger dot kernel dot org
- Date: Fri, 3 Jul 2009 12:14:41 +0530
- Subject: Inline assembly queries [2]
Hi,
Thanks for responding to my previous mail. A few more queries
a. What is the use of adding format specifiers in inline assembly
like
asm volatile("ld%U1%X1 %0,%1":"=r"(ret) : "m"(*ptr) : "memory");
b. using m or Z with a memory address. I tried replacing m/Z but no change
Is there some guideline ?
gcc documentation says Z is obsolete. Is m/Z replaceable ?
- Manish