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

RE: Speeding up ATLAS build time



Clint,

I am trying a slight variant on your suggestion:

PMAKE = $(MAKE) -j 4

obj = tst.o tst2.o
dlib :
        $(PMAKE) lib.grd

lib.grd : $(obj)
        ar r tst.a $(obj)
        touch lib.grd

This seems to work pretty well; all the dependencies
are preserved, and I think the $(obj) dependency is 
only checked once....

Cheers,

Carl

> -----Original Message-----
> From: R Clint Whaley [mailto:rwhaley@cs.utk.edu]
> Sent: Friday, March 09, 2001 6:13 PM
> To: rwhaley@cs.utk.edu
> Cc: atlas-comm@cs.utk.edu
> Subject: RE: Speeding up ATLAS build time
> 
> 
> Guys,
> 
> Here is an idea that works at least somewhat:
> 
> ==============================================================
> =================
> PMAKE = $(MAKE) -j 4
> 
> obj = tst.o tst2.o
> dlib :
>         $(PMAKE) $(obj)
>         $(MAKE) lib.grd
> 
> lib.grd : $(obj)
>         ar r tst.a $(obj)
>         touch lib.grd
> ==============================================================
> =================
> 
> The weakness of this scheme is that the $(obj) dependency is 
> checked twice,
> and this may add too much overhead.  I think experimentation 
> with converting
> a lib or two over to something like this and seeing what the 
> time loss/gain
> is will be needed . . .
> 
> Cheers,
> Clint
>