This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Converting the gcc backend to a library?


On Tue, Jan 11, 2000 at 09:52:37PM +0000, Joern Rennecke <amylaar@cygnus.co.uk> wrote:
> On the contrary, gcc would become more cpu-intensive because shared library
> code has higher register pressure to accomodate the pic register
> (particularily bad on the x86) and to run the dynamic linker.

At least on linux, you do not need to take that speed penalty. Of course,
the memory requirements grow, since the relocations will likely result in
additional copies of the shared library pages.

> A statically linked cc1* executable that is shared among multiple processes
> uses less CPU to run.

There are plans to try to map the same shared objects at the same
addresses (in linux) in some future time. When that happens the chance
that non-pic code in shared objects will still be shared can be very high.

But that's in the distant future (but other unices already do this).

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       pcg@opengroup.org |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]