This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: assembler error
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Ankit Jain <ankitjain1580 at yahoo dot com>, gcc <gcc-help at gcc dot gnu dot org>
- Date: Thu, 19 Aug 2004 06:19:33 -0500
- Subject: Re: assembler error
- References: <20040819073419.5358.qmail@web52903.mail.yahoo.com>
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