This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Change i386 assembler/disassembler for SIB with INDEX==4
- From: cruse at cs dot usfca dot edu (Allan B. Cruse)
- To: binutils at sources dot redhat dot com, cruse at cs dot usfca dot edu, hjl at lucon dot org
- Cc: gcc at gcc dot gnu dot org, libc-alpha at sources dot redhat dot com,linux-kernel at vger dot kernel dot org
- Date: Thu, 13 Jan 2005 12:33:28 -0800 (PST)
- Subject: Re: Change i386 assembler/disassembler for SIB with INDEX==4
On Thu, 13 Jan 2005, "H. J. Lu" <hjl@lucon.org> wrote:
>
>
>
> Subject: Change i386 assembler/disassembler for SIB with INDEX==4
>
> I am proposing to change i386 assembler/disassembler for SIB with
> INDEX==4
>
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=658
>
> It will change the assembler output for (%ebx,[1248]). I am not too
> worried about the disassembler output since assembler can't generate
> SIB with INDEX==4 directly today. Any comments?
>
>
> H.J.
>
This change would give programmers the freedom to write instruction-
syntax that the processor cannot actually execute, is that right?
Perhaps the downside to this would lie in the hours of debugging and
private research each programmer would then be faced with, trying to
figure out why " movl (%esi,2),%eax " wasn't doing what he/she had
intended, and which the assembler had dutifully accepted. --ABC