On Wed, 20 Mar 2002, Gordon Pearce wrote: > >From the previous two email, yep, that's pretty much what I thought. > I never thought about the cache thing though. I wonder if it makes a > difference with no cache?
I think there's some tricks you can play depending on architecture (fast access to memory "close to" an address register, if memory serves), but I think basically no. > I think an experiment is in order... Make sure you use quite big arrays. A 64k cache can store over 16,000 (or 128^2) long ints. If your array is less that this size the whole array can be stored in cache and you wont notice any difference. > I'm really not up on C at all. I kinda grew up using assembler, and never > got out of the habit. This is what happens when you spend all day hacking > Spectrums instead of doing 'O' grade maths :-) Terrible ;^) Paul. ------------------------------------------------------------------------------ Paul Millar yo-yo, n. : Particle Physics Theory Group Something that is occasionally Department of Physics and Astronomy up but normally down. University of Glasgow, (see also Computer) Glasgow G12 8QQ, [EMAIL PROTECTED] Scotland +44 (0)141 330 4717 ------------------------------------------------------------------------------ -------------------------------------------------------------------- http://www.lug.org.uk http://www.linuxportal.co.uk http://www.linuxjob.co.uk http://www.linuxshop.co.uk --------------------------------------------------------------------
