optimizing the cache

Bernhard Helmes bhelmes at gmx.de
Mon Jan 30 19:18:15 CET 2006


> A nice day,
> 
> I would like to store some variables in the cache of the prozessor and not
> in the Ram. Is there a possibility to say to gmp or / and gcc where it
> stores the variables. I hope that i can speed up the program by a factor
> 20.

I found a method to prefetch the variable into the cache by
__builtin_prefetch (&variable, 0, 3)

But I am not sure, how i can prefetch a mpz_t-variable by this construction
in the cache. Has anyone experience with a prefetch and gmp-variable ?

Do you know whether i have to switch on gcc by -fbuiltin ?

Nice Greetings
Bernhard

-- 
Prime numbers dance in a triangle.

I like primes :-)

Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


More information about the gmp-discuss mailing list