GCC Inline ASM generates incorrect assembler code (or documentation is unclear, or I am &*&$@$#*&).

Jan Hubicka jh@suse.cz
Fri Dec 14 15:51:00 GMT 2001


> 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"
> 
> 



More information about the Gcc mailing list