[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Faster startups by fixing C++ object files before linking ( 30-50% faster startups )
From: Ian Reinhart Geiser <geiseri () yahoo ! com>
Date: 2001-07-27 20:30:09
[Download RAW message or body]
On Friday 27 July 2001 04:14 pm, Konrad Wojas wrote:
> On Sat, Jul 28, 2001 at 03:34:32PM -0400, Ian Reinhart Geiser wrote:
> > On Thursday 26 July 2001 06:01 pm, Leon Bottou wrote:
> > > Reading Waldo Bastian's text on C++ shared libraires gave me some
> > > ideas. Eventually I spent a few nights trying them.
> > >
> > > The proposed scheme modifies the object files before linking
> > > in a way that reduces the number of expensive relocations.
> > > Startup times are reduced by 30 to 50%.
> >
> > Hrm, if I read your code correctly this is only for the intel processor?
> > I have a PPC and after I run object prelink on it I get segfaults...
> >
> > I am looking to see if I am doing something wrong, but just to make
> > sure, I am wondering is this a portable solution? Also will this work on
> > my True64 box with Compaq's C++ compiler?
>
> from objprelink.c:
>
> /* ---------------- MACHINE DEPENDENT PART ---- */
>
> static char stub[] = {
> 0xb8, 0, 0, 0, 0, /* mov $0,%eax */
> 0xff, 0xe0 /* jmp *(%eax) */
> };
>
> So unless your ppc cpu understands intel machine code... ;-)
>
> Regards,
so in theory if i substitute my machine instruction here we can have a PPC
version too?
-ian reinhart geiser
--
Fortune for the day:
---------------------------------------------------------------------
The trouble with computers is that they do what you tell them, not what
you want.
-- D. Cohen
---------------------------------------------------------------------
Ian Reinhart Geiser -=<*>=- Linux & KDE Developer
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic