From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert de Bath Subject: Re: More dev86 changes (0.16.7) [About the optimiser] Date: Sat, 3 Aug 2002 12:01:11 +0100 (BST) Sender: linux-8086-owner@vger.kernel.org Message-ID: <792cfcad22189d73@mayday.cix.co.uk> References: <1028367438.471.5.camel@cool> Mime-Version: 1.0 Return-path: In-Reply-To: <1028367438.471.5.camel@cool> List-Id: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Harry Kalogirou Cc: Linux-8086 On 3 Aug 2002, Harry Kalogirou wrote: > Hi Robert, > > lately I was studing the assembly code bcc was generating and I noticed > that it generates a lot of code like this : > > mov ax, 6[bp] > mov bx, 8[bp] > xchg ax, bx > > Will it be hard to convince the compiler to generate > > mov ax, 8[bp] > mov bx, 6[bp] > > instead? There's aren't many places xchg is used by bcc, I'd guess this one is shifting longs but it'd help a lot if you gave me some of the original C code too. -- Rob. (Robert de Bath )