This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Inline ASM generates incorrect assembler code (or documentation is unclear, or I am &*&$@$#*&).
- From: Jan Hubicka <jh at suse dot cz>
- To: Armand Liberi <aliberi at acutronic dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 14 Dec 2001 23:26:33 +0100
- Subject: Re: GCC Inline ASM generates incorrect assembler code (or documentation is unclear, or I am &*&$@$#*&).
- References: <001201c184ec$98de0540$3701a8c0@ARMAND>
> And, I found that:
>
> 3. Using lotsOfInts[0] corrects the code also.
I guess you are just hitting the C semantics of arrays. lotsOfInts is pointer to the
array. If you pass it to the asm statement, you get the pointer value, not the array
itself.
Honza
> -------------------------------------------------
>
> Thanks for taking the time to look at this.
>
> Regards,
> Armand
>
> He who asks is a fool for five minutes, but he who does not ask remains a
> fool forever. - Chinese proverb
> Life is just one five minute period after another. - Armand Liberi"
>
>