Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jim Nance <Jim_Nance@avanticorp.com>
Subject: Re: gdb (fwd)
Date: Tue, 21 May 1996 23:12:23 -0400 (EDT)	[thread overview]
Message-ID: <9605220312.AA20213@scooter> (raw)

Forwarded message:
> From: "Eric Youngdale" <eric@aib.com>
> Subject: Re: gdb

> >that is that I hope that it will be unnecessary. The _correct_ way to
> handle >it is to never generate those d*mn instructions in the first place.
> We need >an optimizing linker that gets rid of them and makes it into a
> single "bsr"
> >instruction instead.
> 
> 	This wouldn't be a hard optimization, and in fact it would make
> shared libraries a bit easier for those cases where you can safely call
> without going through a PLT (i.e. we are not using up a valuable .got
> slot for a pointer).  It would tend to be used for things like static
> functions that we would want to do this in shared libs.   For normal
> executables, it is more just a question of whether the branch is in range or
> not.

I think compiling with the -om flag under Digital Unix does this.  The
reason I point this out is that Digital wrote a nice paper on doing this
type of optimization, and you can get it by mailing to an address at DEC.
Unfortunatly, I cant remember the address.  If anyone wants the paper, I
will try to dig up the address, just send me some email.  If anyone knows
the address, please send it to me so I don't have to dig it up :-)

jim

                 reply	other threads:[~1996-05-22  3:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox