Structure members in asm using one register only
Maurizio Monge
maurizio.monge@gmail.com
Thu May 5 12:42:00 GMT 2005
Hi, i am trying to make gcc access the members of a class
using only one register (for the class address).
If i do:
[member1] "m" (this->member1),
[member2] "m" (this->member2),
etc.
gcc will put the address of this->member1 in one register,
address of this->member2 in another one, etc...
i know that i can do
[thiz] "r" (this)
and access the members as xyz([this]) with the right xyz,
but is there a more intelligent way than looking for all the structure
offsets and putting them directly in the as code?
Thanks
Maurizio Monge
More information about the Gcc-help
mailing list