[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: Konrad Wojas <wojas () vvtp ! nl>
Date: 2001-07-27 20:14:43
[Download RAW message or body]
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,
--
Konrad Wojas .~.
~ wojas@vvtp.nl / V \
~ http://wojas.vvtp.nl /( )\
:wq ^ ^
>> 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