This is the mail archive of the gcc@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: GCC Inline ASM generates incorrect assembler code (or documentation is unclear, or I am &*&$@$#*&).


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]