[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] CCACHE_DIR=/ram/ccache (Speeding up compilation by using ram)
Am Samstag, den 28.08.2010, 13:24 +0200 schrieb Matt Waller
<mw333@hotmail.com>:
> I tried ccache and it works well. Just out of curiosity I tried
> setting the CCACHE_DIR environment variable to point to /ram/ccache ,
> but it seems to not work.
> (eg; after compiling the /ram/ccache directory remains empty). I also
> tried setting CCACHE_TEMPDIR as well, just in case..
> Any ideas?
> Matt.
Hello Matt,
I just tied it myself. First I was a bit confused, because my test
hello.c that I invoked for compilation with the command:
gcc hello.c -o hello
did not increase the ccache -s stats...(expect the linker invocation
count) I tried both: /ram/.ccache and my /root/tmp/.ccache
(my setup is: /root/.ccache normaly is an link to /root/tmp/.ccache)
But when I invoked gcc just for compilation:
gcc -c hello.c
/ram/.ccache worked well.
Sadly I don't have the time to measure thing, but anyway... the .ccache
dir should be an persistant directory... setting CCACHE_TEMPDIR to the
ram sound very nice, anyway. But you shouldn't set CCACHE_TEMPDIR to
another fileystem than the CCACHE_DIR... because of some file renaming
issues - at least that's what the doc's say.
So, to summarize: ccache & /ram works well with my aranym FreeMiNT
1.16.3 Setup.
Maybe you also just tried pure gcc invoke without the -c flag?
Greets,
m