Re: gcc compilation speed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Seyran Avanesyan wrote:

> An application runs gcc to build a shared library from souce in c. There
> is only one source file per library, which, is not bigger then 500
> lines.
> Since there are many of those c-codes it is taking too long to compile
> all the libraries. 
> 
> Is there any way to improve compile time other then not using any
> optimization?
> 
> Or is there some kind of utility that I can run and send "compile jobs"
> to it without unloading it from memory?
> 
> By the way -pipe reduced compile time by 10% on small files (10 lines of
> code). For bigger files (~ 500 lines) it added another 10% to compile
> time.
> I'm doing this on Windows Vista 64-bit machine using 32-bit MinGW with
> gcc3.4.5  (and 64-bit MinGW with gcc4.4.0).

Precompiled headers might help.  That's all I can think of.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux