This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -foptimize-sibling-calls and passing structs
- To: Artur Skawina <skawina at geocities dot com>
- Subject: Re: -foptimize-sibling-calls and passing structs
- From: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Date: Sun, 4 Jun 2000 17:58:47 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <3939E1EC.3DD1C2FF@geocities.com>
Artur Skawina wrote:
> r() gets compiled to:
>
> <r>:
> sub $0xc,%esp
> lea 0x10(%esp,1),%eax
> mov %eax,0x10(%esp,1)
> add $0xc,%esp
> jmp <p>
>
> which does seem to be a bit aggressive...
I assume you mean not aggressive enough. It should be
lea 4(%esp,1),%eax
mov %eax,4(%esp,1)
jmp <p>
:-)
-- Jamie