[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Improvement on parallel make
From: |
Alexey Neyman |
Subject: |
Re: Improvement on parallel make |
Date: |
Tue, 12 Dec 2006 11:34:31 +0300 |
User-agent: |
KMail/1.6.2 |
Philip,
It is ok if there is a clear dependency like you pointed out.
There may be cases when it doesn't work, however. E.g. the 'ar' tool
does not lock the archive while updating it. Thus, running 'ar' on
the same archive concurrently may corrupt it.
Imagine that both local Makefile and Makefiles in subdirectories need
to update the archive. How do you express it using normal
dependencies?
Regards,
Alexey.
On Tuesday 12 December 2006 11:23, Philip Guenther wrote:
> [Dang it, fingers slipped and I sent while still editting. So to
continue...]
>
> Note that the desired makefile mentioned above:
> local_objects = a.o b.o c.o d.o
> all: all-recursive .WAIT all-local
> all-recursive:
> $(MAKE) -C subdir all
> all-local: $(local_objects)
>
> can *currently* be implemented like this:
>
> local_objects = a.o b.o c.o d.o
> all: all-recursive
> $(MAKE) all-local
> all-recursive:
> $(MAKE) -C subdir all
> all-local: $(local_objects)
>
> The choice to use recursive make means you've given up on maximizing
> your parallelism (because your dependency tree has to be a superset
of
> the real tree). As long as you've burned that bridge, why not use
it
> here to express the ordering?
>
>
> Philip Guenther
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make
>
--
Your efforts are valid, merely incomplete.
-- Supox, SC2
- Re: Improvement on parallel make, (continued)
- Re: Improvement on parallel make, Philip Guenther, 2006/12/11
- Re: Improvement on parallel make, Alexey Neyman, 2006/12/11
- Re: Improvement on parallel make, Philip Guenther, 2006/12/11
- Re: Improvement on parallel make, Brendan Heading, 2006/12/11
- Re: Improvement on parallel make, Paul Smith, 2006/12/11
- Re: Improvement on parallel make, Paul Smith, 2006/12/11
- Re: Improvement on parallel make, Philip Guenther, 2006/12/12
- Re: Improvement on parallel make, Philip Guenther, 2006/12/12
- Re: Improvement on parallel make,
Alexey Neyman <=
- Re: Improvement on parallel make, Philip Guenther, 2006/12/12
- Re: Improvement on parallel make, Christophe Lyon, 2006/12/12
- Re: Improvement on parallel make, Philip Guenther, 2006/12/12
- Re: Improvement on parallel make, Christophe Lyon, 2006/12/12
- Re: Improvement on parallel make, Brendan Heading, 2006/12/12
- Re: Improvement on parallel make, Christophe Lyon, 2006/12/12
- Re: Improvement on parallel make, Brendan Heading, 2006/12/12
- Re: Improvement on parallel make, Christophe Lyon, 2006/12/12
- Re: Improvement on parallel make, Brendan Heading, 2006/12/12
- Re: Improvement on parallel make, Brendan Heading, 2006/12/12