This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: [PATCH] x86: suppress emission of zero displacements inmemoryoperands
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'DJ Delorie'" <dj at redhat dot com>,<JBeulich at novell dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Fri, 6 May 2005 17:44:39 +0100
- Subject: RE: [PATCH] x86: suppress emission of zero displacements inmemoryoperands
----Original Message----
>From: DJ Delorie
>Sent: 06 May 2005 17:41
>> What if someone wants to write self-modifying code that stores
>> varying offsets into that field?
>
> Being one of those people, the answer is "use .byte".
>
> We don't trust assemblers (or linkers) to be dumb any more.
Oh well, it seems a shame from the
future-proofing-clean-design-and-maintainability point of view to have to
hard code opcode values as hex constants in your program when you have a
handy assembler right there that could do the work for you.....
cheers,
DaveK
--
Can't think of a witty .sigline today....