Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I’m not an expert… but it seems like it could be even simpler than program design. They note false sharing occurs due to data not being cacheline aligned. Yet when compiling for ARM, that’s not a big deal due to WO. When targeting x86, you would hope the compiler would work hard to align them! So the out of the box compiler behavior could be crucial. Are there extra flags that should be used when targeting ARM-TSO?


False sharing mostly needs to be avoided with program design. I'm not aware of any compiler flags that help here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: