Re: Stack variable alloc alignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think the OP means to put the entire locals into the same cache line, as their combined size is less than 128.


Op 21/06/2021 om 17:57 schreef Stefan Ring via Gcc-help:
I use this code snippet tested that both default gcc and clang can’t promise this:
Promise what?

$./a.out
140733249436400
140733249436159, 1
140733249436152, 4
140733249436151, 1
140733249436136, 8
As you can see, they are all aligned, which is the usual behavior. I’m
not sure if this can be switched off, as I cannot think of a good
reason for doing so.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux