Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Feb 2002 12:19:23 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Mike Silbersack <silby@silby.com>, Michal Mertl <mime@traveller.cz>, hackers@freebsd.org, greg@bogslab.ucdavis.edu
Subject:   Re: stack alignment issues
Message-ID:  <20020205121923.O59017@elvis.mu.org>
In-Reply-To: <20020206071049.S502-100000@gamplex.bde.org>; from bde@zeta.org.au on Wed, Feb 06, 2002 at 07:11:31AM %2B1100
References:  <20020205134035.M1617-100000@patrocles.silby.com> <20020206071049.S502-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Bruce Evans <bde@zeta.org.au> [020205 12:09] wrote:
> On Tue, 5 Feb 2002, Mike Silbersack wrote:
> 
> > On Tue, 5 Feb 2002, Bruce Evans wrote:
> > > foo:
> > > 	pushl %ebp
> > > 	movl %esp,%ebp
> > > 	subl $8,%esp		# <- extra instruction for alignment (for foo)
> > > 	addl $-12,%esp		# <- extra instruction for alignment (for f1)
> >
> > What disgusting code.  I find it amazing that they didn't even stick in
> > some peephole optimizer to at least limit it to one operation.
> 
> It's clearly the result of work in progress :-).

I see really cruddy stuff like this every time i do a gcc -S, don't
they watch for and try to fix this sort of thing?

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020205121923.O59017>