Re: [ccache] Could ccache handle the input as .o file as well as source file.
On 2011-03-15 04:17, xiaoxiao wrote: > Have anyone ever considered to build up a mapping between .o file and > its output? If so, why ccache did not provide such feature. If not, do > you think it is a reasonable feature for ccache to reduce the time for > linking in a compilation? It would certainly be possible to teach ccache about this, but my current feeling is that the cost of implementing it (both in terms of developer time and increased code complexity) may not be worth the potential gain. Not much of ccache's source code can be reused for such functionality. I also suspect that the cache hit/miss ratio for the linking step generally will be low since the linker output changes whenever any source code of the entire program/library has changed. I'm not totally against the idea, though, but I'm personally not interested in investating it further for the moment. But if you or anybody else are willing to prototype it, be my guest. :-) -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
Re: [ccache] Could ccache handle the input as .o file as well as source file.
On Mon, Mar 14, 2011 at 23:56, xiaoxiao wrote: > 于 2011/3/15 11:33, Mike Frysinger 写道: >> try switching to gold > > Sorry, but what do you mean? please dont top post get latest binutils and use `ld.gold` instead of just `ld`. there is also some gcc flag to control which one is invoked, but i forget what it is. -mike ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
Re: [ccache] Could ccache handle the input as .o file as well as source file.
于 2011/3/15 11:33, Mike Frysinger 写道: Sorry, but what do you mean? Sean On Mon, Mar 14, 2011 at 23:17, xiaoxiao wrote: I've been using ccache recently, in order to decline the compilation time for a certain module. In this module, with the help of the greatest ccache, the time could be shorten to 5 mins from 40 mins without any modification. However, even if the output of all the source files are cached, we have to take about the 5 mins mainly in the linking action, eg: a.o -> test_a(exetuable). Since I have noticed that ccache do not take the .o file as a input to be cached. The actions as linking would certainly not be ccached, and thus the time for linking would not significant reduced. Given this background, I have a few questions to talk about. Have anyone ever considered to build up a mapping between .o file and its output? If so, why ccache did not provide such feature. If not, do you think it is a reasonable feature for ccache to reduce the time for linking in a compilation? try switching to gold -mike ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
Re: [ccache] Could ccache handle the input as .o file as well as source file.
On Mon, Mar 14, 2011 at 23:17, xiaoxiao wrote: > I've been using ccache recently, in order to decline the compilation > time for a certain module. In this module, with the help of the greatest > ccache, the time could be shorten to 5 mins from 40 mins without any > modification. However, even if the output of all the source files are > cached, we have to take about the 5 mins mainly in the linking action, > eg: a.o -> test_a(exetuable). Since I have noticed that ccache do not > take the .o file as a input to be cached. The actions as linking would > certainly not be ccached, and thus the time for linking would not > significant reduced. > Given this background, I have a few questions to talk about. Have anyone > ever considered to build up a mapping between .o file and its output? If > so, why ccache did not provide such feature. If not, do you think it is > a reasonable feature for ccache to reduce the time for linking in a > compilation? try switching to gold -mike ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
[ccache] Could ccache handle the input as .o file as well as source file.
Hi: I've been using ccache recently, in order to decline the compilation time for a certain module. In this module, with the help of the greatest ccache, the time could be shorten to 5 mins from 40 mins without any modification. However, even if the output of all the source files are cached, we have to take about the 5 mins mainly in the linking action, eg: a.o -> test_a(exetuable). Since I have noticed that ccache do not take the .o file as a input to be cached. The actions as linking would certainly not be ccached, and thus the time for linking would not significant reduced. Given this background, I have a few questions to talk about. Have anyone ever considered to build up a mapping between .o file and its output? If so, why ccache did not provide such feature. If not, do you think it is a reasonable feature for ccache to reduce the time for linking in a compilation? Thanks Sean ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache