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: DJ Delorie <dj at redhat dot com>
- To: dave dot korn at artimi dot com
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 6 May 2005 12:50:42 -0400
- Subject: Re: [PATCH] x86: suppress emission of zero displacements inmemoryoperands
- References: <SERRANOpvqnJNeO925B00000271@SERRANO.CAM.ARTIMI.COM>
> Oh well, it seems a shame from the
> future-proofing-clean-design-and-maintainability point of view
Go back to the "self modifying code" part. At that point, you've
already blown most of the benefits of maintainable code ;-)
> 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.....
There was a program to do that job, an "optimizing assembler", but
Mel refused to use it.
"You never know where it's going to put things", he explained, "so
you'd have to use separate constants".