Date: Wed, 13 Dec 2000 15:23:37 -0800 (PST) From: Matt Dillon <dillon@earth.backplane.com> To: Drew Eckhardt <drew@PoohSticks.ORG> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: syscall assembly Message-ID: <200012132323.eBDNNb588363@earth.backplane.com> References: <200012132309.eBDN9eh29153@chopper.Poohsticks.ORG>
next in thread | previous in thread | raw e-mail | index | archive | help
:>
:>gcc tries to align stack to 16 byte boundaries as a speed
:>optiminzation. Why it doesn't do this in one instruction is beyond
:>me.
:
:Kocking 16 bytes off the stack pointer won't put it any closer to a
:16 byte boundary.
This is precisely my problem with gcc's 'optimization'. It's
utterly stupid for it to assume that the stack is already
16-byte aligned... it makes it impossible to mix aligned and
non-aligned code and still have a reasonably optimal result
(e.g. like third party libraries or older libraries or
whatever). And it's a huge, unnecessary waste of space
when most of the time all you are storing on the stack are
ints.
-Matt
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?200012132323.eBDNNb588363>
