This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Disabling cache for some data


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]