Re:Ask HN: Favorite pointer tricks in C?
by mansr on Monday November 22, 2010 @03:35AM
(#1929127)
To the store instruction everything is data, even if it happens to be instructions. Stores initially go the L1 D-cache, and unless the I and D caches are coherent, explicit cleaning (D) and invalidating (I) is required. Maybe they are coherent on x86, but I know with certainty that they are not on for example ARM.
[ Parent
| on HN ]
Re:Ask HN: Favorite pointer tricks in C?
by thedigitalengel on Thursday December 02, 2010 @10:20AM
(#1962361)
x86 is cache-coherent; we can directly modify code at runtime and expect things to work.