bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More info about libc/libio/gcc-3.0 static binaries


From: Marcus Brinkmann
Subject: Re: More info about libc/libio/gcc-3.0 static binaries
Date: Tue, 8 Jan 2002 01:14:46 +0100
User-agent: Mutt/1.3.24i

On Tue, Jan 08, 2002 at 01:02:26AM +0100, Marcus Brinkmann wrote:
> BTW, the corresponding glibc-2.2.4/gcc2.95 code for the above code (function
> in function) is
> 
> _hurd_stack_setup:
>         pushl %ebp
>         movl %esp,%ebp
>         subl $24,%esp
>         leal 8(%ebp),%eax
>         movl %eax,-4(%ebp)
>         call __mach_init
>         leave
>         ret
> 
> Mmmh.  It does the same derefernce 8(%ebp).  Maybe the code is right and the
> problem is even before that?

Jeff just enlightened me on lea, which loads the address to the register,
not the content (if I understood everything correctly), for *later*
dereference.

So the question is if gcc-3.0 produces bad code or just code that is
uncomfortable for us.  I have not read on in the assembler how %eax is going
to be used later.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]