help-make
[Top][All Lists]
Advanced

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

Re: confuesion about parallel execution features


From: Eli Zaretskii
Subject: Re: confuesion about parallel execution features
Date: Sat, 31 Jul 2010 10:46:12 +0300

> Date: Sat, 31 Jul 2010 15:30:22 +0800
> From: EdwardXu <address@hidden>
> 
> I'm trying to using parallel execution futures on my 4 cores computer(-j4
> option). In my opinion, GNU make only can processes different objects
> parallelly, for example:
> all: a.o  b.o c.o d.o e.o f.o
> a.o:
>     (CC) a.c
> b.o:
>     (CC) b.c
>  c.o:
>     (CC) c.c
> d.o:
>     (CC) d.c
>  e.o:
>     (CC) e.c
> f.o:
>     (CC) f.c
> 
> GNUmake will treat above objects parallel, make will create 4 CC process to
> compile a b c d e f objects, so there is  something cofused me, how make
> treat wildcard object? for example:
> all:%.o
> %.o:%.c
>     (CC) %.c

The parallelization is not on the object level.  It is on the job
level.  That is, when Make decides there's a job (i.e. command) to
run, and the number of already running jobs is less than 4, it will
launch another job.



reply via email to

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