Arun Sharma writes:
>
> For Intel processors, CPUID instruction spits out both L1 and L2 cache
> sizes. Perhaps, these things should be made a runtime option than a
> compile time option ?
That sounds like a good idea.
Also, I imagine that it would be possible to write a function to
emperically determine the system cache size on non Intel CPUs where
such an instruction is not available. Eg, Alpha processors don't
specify the amount of Bcache (secondary or tertiary) cache they have &
Tru64 sizes them on the fly.
Cheers,
Drew
------------------------------------------------------------------------------
Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin
Duke University Email: [EMAIL PROTECTED]
Department of Computer Science Phone: (919) 660-6590
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message