This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc incremental linking
- To: Michael Cardenas <Michael_Cardenas at deneba dot com>
- Subject: Re: gcc incremental linking
- From: Marc Lehmann <marc at gimp dot org>
- Date: Fri, 28 Jan 2000 20:51:33 +0100
- Cc: "'gcc'" <gcc at gcc dot gnu dot org>
- References: <911C34FD83B8D1119788004033A02EAEA5FA36@MAILSRVR>
> > 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 |
|