On Fri Oct 19 11:40:41 EDT 2012, 9f...@hamnavoe.com wrote: > > easiest to just > > cacheline-align everything in malloc > > Might be a good idea for ARM. Until someone produces a > chip with gigantic cache lines? > > Another alternative might be to have a separate pool of > uncached memory.
i'm certainly not claiming this is a general solution for all possible arms, but for kw-style caches (16-byte lines) and kw-style hardware (very little cache-coherency), i think the idea has a lot of merit. especially with quickfit with external (that is cache-coherent) tracking. i really do like your cc malloc, though. very clean. though i had to look twice to verify i understood the pointer orthodontics. ☺. - erik