RE: One GNU ASM syntax problem

2002-12-06 Thread John Baldwin
On 06-Dec-2002 kai ouyang wrote: > Hi,everybody, > > I have one question about GNU ASM syntax. > As I know: > __asm __volatile( >"instructions" >:output >:input >:exception); > In Linux, the restriction of output are "=m","=a", etc. > But I found in FreeBSD, there are "=m" and

Re: One GNU ASM syntax problem

2002-12-05 Thread Peter Wemm
"kai ouyang" wrote: > >I do not know the difference between "+" and "=". why? > Thank you, I got it from 'info gcc'. > It is the reason that "Extended asm supports input-output or read-write > operands. Use the constraint character `+' to indicate such an operand > and list it with the output opera

Re: One GNU ASM syntax problem

2002-12-05 Thread kai ouyang
I do not know the difference between "+" and "=". why? Thank you, I got it from 'info gcc'. It is the reason that "Extended asm supports input-output or read-write operands. Use the constraint character `+' to indicate such an operand and list it with the output operands.". Best Regards Ouyang K

One GNU ASM syntax problem

2002-12-05 Thread kai ouyang
Hi,everybody, I have one question about GNU ASM syntax. As I know: __asm __volatile( "instructions" :output :input :exception); In Linux, the restriction of output are "=m","=a", etc. But I found in FreeBSD, there are "=m" and "+m". I do not know the difference between "+" and "=". why?