From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] 8a/8l bug In-Reply-To: Your message of "Wed, 17 Dec 2003 14:26:36 EST." <20031217192636.GA7069@ionkov.net> From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <42903.1071701659.1@t40.swtch.com> Message-Id: Date: Wed, 17 Dec 2003 17:54:19 -0500 Topicbox-Message-UUID: a8684d5e-eacc-11e9-9e20-41e7f4b1d025 > Also > ADDL $-1, AX > > is not equivalent to > > SUBL $1, AX > > The CF flag is different. The linker is doing the "optimizations" as part of instruction selection. (The split of work between compiler and loader is different than it is with gcc.) In uchar yaddl[] = { ..., delete the two lines beginning with Yi1. Then you have to edit all the table entries in optab[] that reference yaddl to remove the offending inc/dec instructions. But I can't remember how to decode that table. Russ