Disabling cache for some data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have to write a dummy testing program which continuously reads 2 bytes on RAM, fills a buffer, and then sends all the data through the Ethernet interface. It's used just to evaluate the maximum throughput that I would have reading from memory and sending to Ethernet.

However, If I read always the same data, the processor uses the cache and does not perform a memory read.

My question is: how can I tell gcc to not cache such data ?

Many thanks for any help and suggestion,

        Claudio



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux