]> Devi Nivas Git - cs3210-lab0.git/commit
Cannot use "g" as an arg constraint because
authorrsc <rsc>
Tue, 14 Aug 2007 04:05:27 +0000 (04:05 +0000)
committerrsc <rsc>
Tue, 14 Aug 2007 04:05:27 +0000 (04:05 +0000)
commit3163085ace9f530bdf6dbc83c62d5e3842728860
treefe6c4210a15fe5e6aedf942a0b2b20e30464791e
parent5e03dd86c8de6180ddbddb16974e5af1a010f60b
Cannot use "g" as an arg constraint because
some memory references aren't actually valid
and gcc is a bit too smart in parsing (%0) and
a bit too dumb in knowing which memory refs
are not valid.  Using "r" seems to constrain gcc
to use a register as in (%eax) and not substitute
a memory reference like (-36(%ebp)).

No one really understands these things.
x86.h