bug-gnustep
[Top][All Lists]
Advanced

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

[bug #9445] makefiles not safe for parallel build


From: Nicola Pero
Subject: [bug #9445] makefiles not safe for parallel build
Date: Mon, 02 Feb 2009 13:32:38 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5

Follow-up Comment #4, bug #9445 (project gnustep):

I have been thinking for a while about the new .NOTPARALLEL 
target in GNU make ... :-)

... maybe we could move all the file compilations into a separate
recursive make invocation, then let make go wild with 
parallelization on that sub-make invocation only. :-)

So, we keep all our "serial" features such as support for
before-all::, after-libgnustep-base-install:: targets, but
we parallelize the actual compilation.

The Instance invocation would do all the usual stuff, but
we'd replace the rule to build OBJ_FILES with a phony target
'compile-obj-files', which itself would fire up another
make instance.  That make instance would only execute the
rules to build OBJ_FILES and could be safely parallelized
(by omitting the .NOTPARALLEL: target).

Now this would allow parallel compilation (eg, if you
compile gnustep-base, which contains something like 100+
Objective-C files to compile, the compilation would happen
in parallel) which would presumably be faster on modern
machines; but it would add a make invocation per Instance, 
which would make things a little bit slower on older
machines.  I suppose it might be worth it ... if people
then actually use 'make -j4' to take advantage of it.

When I have a bit of time, I'll play with this.

Thanks

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?9445>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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