[Top][All Lists]

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

Feature proposal: sort file compilation order by time

From: David Sterba
Subject: Feature proposal: sort file compilation order by time
Date: Tue, 20 Jan 2004 19:01:24 +0100
User-agent: KMail/1.5.4


I'd like to present an idea which can make edit-compile-edit
cycle faster.

The idea is simple: compile first files which vere modified
most recently. hold fixed list of _SOURCES for each target.
Order of files can be changed, of course, but this needs
regeneration of Makefile and this should not be done on every

Instead, there should exist a Makefile target for each bin/lib,
called eg. <target>-build-order, which scans <target>_SOURCES
in current directory, sorts by time and creates a file (<target)-build-order)
which will be included in Makefile. This file overrides a variable
which holds built object files for <target>. By default, Makefile
has predefined orded, given by <target>_SOURCES.

By building recently touched files first, I do not have to wait for
compilation of untouched objects. This is significant for C++ sources,
since these may take long time to compile.

This feature is useful only for development building, not for
final, so it can use the .deps/ directory for storing target-order

See attached files for example.

Well, I'd like to ask now, if this idea can be icluded in automake
(with proper implementation) ?

Please CC: me, I'm not on the list.


Attachment: am-example.tbz2
Description: BZip2 compressed data

reply via email to

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