Date: Fri, 24 Aug 2001 13:48:11 -0700 (PDT) From: Matt Dillon <dillon@earth.backplane.com> To: Dan Nelson <dnelson@emsphone.com> Cc: John Baldwin <jhb@freebsd.org>, Leo Bicknell <bicknell@ufp.org>, "David O'Brien" <obrien@freebsd.org>, freebsd-hackers@freebsd.org, Steve Roome <stephen_roome@yahoo.com> Subject: Re: function calls/rets in assembly Message-ID: <200108242048.f7OKmBu00154@earth.backplane.com> References: <20010824161024.A45122@ussenterprise.ufp.org> <XFMail.010824133134.jhb@FreeBSD.org> <20010824153622.A17762@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You guys are forgetting about the stack-boundry crap some idiot added
to GCC to optimize floating point ops, which gets stuffed in there even
if there are no floating point ops.
I really wish someone would rip it out. It is SOOO fraggin annoying.
-Matt
cc -S -O -fomit-frame-pointer -mpreferred-stack-boundary=2 x.c
printasint:
pushl 4(%esp)
pushl $.LC0
call printf
addl $8,%esp
ret
cc -S -fomit-frame-pointer -mpreferred-stack-boundary=2 x.c
printasint:
movl 4(%esp),%eax
pushl %eax
pushl $.LC0
call printf
addl $8,%esp
.L2:
ret
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?200108242048.f7OKmBu00154>
