On Mon, Mar 19, 2007 at 12:33:14PM +0100, Helge Hafting wrote:
> Enrico Forestieri wrote:
> >I am objecting. I only have 256 Mb of memory and right now I am barely
> >able to successfully compile src/buffer.C. Moreover, I cannot anymore
> >compile with debugging symbols because I get out of memory errors, and
> >have to selectively compile single files with -g.
> >I think that with such large files I will not be able to compile LyX.
> >No, I am not going to buy more memory (wouldn't fit in my laptop anyway)
> >or a new computer in the near future.
>   
> Good point.

Not at all. Preprocessor output  matters, not the line count of a .C
file.

> There are many files much smaller than buffer.C's 44kB though.
> Perhaps a "don't merge beyond 32kB" policy might help you?
> 
> There seems to be lots of files <10kB, where some merging
> might be ok.
> 
> Also consider using a swap file when compiling. That should
> replace the out of memory problems with disk waiting.

The linker is the bottleneck.

And it helps btw when the linker sees less duplicated weak symbols
which incidently happens when it links less object files.

Andre'

Reply via email to