This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: reduce compilation times?


I mean (I think):
"Allow N jobs at once"   !=    "reduce compile time"     

I did this to see the effect of "make -j":

]# rm *.o
]# make
....( 10 minute )

then I edit one of my files (only one statement), and then:
]# make -j
...( still 10 minute )




Andrew Haley wrote:
> 
> mahmoodn writes:
>  > 
>  > "make -j" does not work. according to "make --help":
>  > 
>  > -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no
> arg.
>  > 
>  > I don't think it is suitable for my work. I will move on to ccache. 
> 
> It works for me.  What's wrong with it?
> 
>  > But yet I did not find any tutorial.
> 
> http://ccache.samba.org/
>  
> Andrew.
> 
> 
>  > Andrew Haley wrote:
>  > > 
>  > > mahmoodn writes:
>  > >  > 
>  > >  > Is it possible to reduce compilation time with GCC?
>  > > 
>  > > Yes.  distcc will help you, as will "make -j".  ccache is also
> useful.
> 
> -- 
> Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor,
> Berkshire, SL4 1TE, UK
> Registered in England and Wales No. 3798903
> 
> 

-- 
View this message in context: http://www.nabble.com/reduce-compilation-times--tf4880765.html#a13969133
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]