This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Sythetic registers: modrm/gas question.
- From: dewar at gnat dot com (Robert Dewar)
- To: gcc at gcc dot gnu dot org, ja_walker at earthlink dot net
- Date: Sun, 5 Jan 2003 06:42:02 -0500 (EST)
- Subject: 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.