>>>>> "Denis" == Denis Zaitsev <zzz@xxxxxxx> writes: Denis> On Mon, Aug 09, 2004 at 08:13:00PM +0200, Bernardo Innocenti Denis> wrote: >> >> >> Dave Korn wrote: >>-----Original Message----- >>From: gcc-owner On >> Behalf Of Ankit Jain >>Sent: 09 August 2004 18:10 >> > >> > >> >>hi >> >> >> >>a simple question: why the followinf instruction >>dosent work >> in gcc >>for(i=0;i<8;i++) >>{ >>asm("movq i(%1),%%mm0 \n" >> "movq >> %%mm0,(%0) >> :"=r"(x) >> :"r"(m)); //m is an array >>} >> > >> > You forgot a closing quote. >> >> And a \t after the \n. Without it, the second movq would start at >> the beginning of the line and be interpreted as a label by the >> assembler. Denis> It's not true. It will be interpreted correctly. At least, Denis> for the x86 assembler. The same goes for many other assemblers. It depends on the syntax rules -- some assemblers believe that a token in column 1 is a label, some believe a token must be followed by colon (and often doesn't have to be in column 1) to be a label. GAS appears to be one such. paul