[Top][All Lists]

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

Reducing Gnu Make's memory consumption?

From: Dan Kegel
Subject: Reducing Gnu Make's memory consumption?
Date: Mon, 30 May 2005 08:02:55 -0700
User-agent: Mozilla/4.0 (compatible;MSIE 5.5; Windows 98)

We all know "recursive Makefiles are considered harmful".
Yet monolithic Makefiles can also have performance issues.
In particular, for very large projects, the Make process
can use hundreds of megabytes of memory.  The amount
of memory used by Make seems in my tests to be
about three times the size of the Makefile.  For
automatically generated Makefiles being run on
machines with a 1GB user address space, this means
the largest possible Makefile is about 300MB.
While this concern is largely theoretical,
and the obvious workaround is to generate smaller Makefiles,
it still seems worthwhile to ask if anyone has looked
into reducing the memory consumption of gnu Make.

Trying to get a job as a c++ developer?  See

reply via email to

[Prev in Thread] Current Thread [Next in Thread]