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: gcc incremental linking


> > It there a way to make gcc link incrementally? It's extremely slow to have
> > to recompile the entire lib or my entire application (which is 40mb once
> > compiled) whenever I need to change one file. This means that if I make
> > one change in my app, I have to wait 5 minutes for it to link. Is this how
> > you all work? 

Yes ;)

You might try to split your application into smaller parts, link them
into shared objects (on linux for example there is not much difference
between normal archives and shared objects) and use these to link your
application.

This can work much faster than a full link.

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       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]