News for hackers. Stuff that matters.
Re:Cache line alignment in C++ – How it makes your program f... by eddtests on Saturday September 16, 2023 @03:46PM (#37538013)
gcc has some compiler arguments to automate this from what I understand (-falign) https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
Re:Cache line alignment in C++ – How it makes your program f... by rsaxvc on Saturday September 16, 2023 @05:04PM (#37538691)
Currently those GCC flags are only about instruction alignment. The article shows a simple example of runtime data alignment.