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: Sythetic registers: modrm/gas question.


> How do I tell gas to assemble an operand as a one-byte offset instead of a 
> four-byte offset?
> 
> e.g. 
> 
> MOV     eax,[ebp + 4]
> 
> Does it "just know?"
> 
> Andy

Yes, of course it "just knows", that's why your guess that gcc is generating
poor code seems ill-informed. It is inconceivable that *any* compiler would
use four byte offsets to access the local stack frame.


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