Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIIRC (from other posts here) even alt_uncached_malloc() isn't guaranteed to return memory that doesn't share a cache line with other malloced memory (or the malloc systems red-tape), nor does it ensure the cache doesn't already contain data for the address range (which might be written out later).
Using globals would work - provided you mark them with __attribute__((aligned,32)) assuming 32 byte cache lines.