Re: assembler error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ankit,

Your a[32] array and b[32] array are not stored in registers, they are
stored in memory.  But you are using a "r" specifier instead of a "m"
specifier.

I changed your example to use "m", and set b to all 255, and also changed
the printf loop to print each time instead of just the first time, and then
the assembly snippet copied a to b in four iterations.

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux