From mint-bounce@lists.fishpool.fi  Sat Aug 28 10:11:10 2010
To: Matt Waller <mw333@hotmail.com>
Subject: Re: [MiNT] =?UTF-8?Q?CCACHE=5FDIR=3D/ram/ccache=20=28Speeding=20u?=  =?UTF-8?Q?p=20compilation=20by=20using=20ram=29?=
MIME-Version: 1.0
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Date: Sat, 28 Aug 2010 16:09:03 +0200
From: m0n0 <ole@monochrom.net>
Cc: mint <mint@lists.fishpool.fi>
Reply-To: ole@monochrom.net
In-Reply-To: <SNT125-W52E841381F93A105846B9FE6870@phx.gbl>
References: <SNT125-W52E841381F93A105846B9FE6870@phx.gbl>
Message-ID: <f30b094297c9a99cbe2ca136afb2683d-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUNBAjBTXF5bVkYJXV1oA1ZUMl5dSUYCX15cRFs=-webmailer2@server02.webmailer.hosteurope.de>
X-Sender: ole@monochrom.net
User-Agent: Host Europe Webmailer/2.0
X-HE-Access: Yes
X-bounce-key: webpack.hosteurope.de;ole@monochrom.net;1283004543;df7cc2eb;
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: ole@monochrom.net
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>


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


