Re: doubt on atomic increment operation

2008-09-13 Thread Mulyadi Santosa
Hi... On Sat, Sep 13, 2008 at 1:28 PM, Sri Ram K Vemulpali <[EMAIL PROTECTED]> wrote: > Hi all, > > what is the difference between incb %al and incb $i. According to my > knowledge if you have some thing like "i++" (in c) then it is translated in > to movw $i %ebx, incw %ebx, movw %ebx $i. My que

doubt on atomic increment operation

2008-09-12 Thread Sri Ram K Vemulpali
Hi all, what is the difference between incb %al and incb $i. According to my knowledge if you have some thing like "i++" (in c) then it is translated in to movw $i %ebx, incw %ebx, movw %ebx $i. My question, when I explicitly give variable as operand to increment in assembly like "incb $i", then