This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: assembler error


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]