79157289

Date: 2024-11-04 23:40:10
Score: 1.5
Natty:
Report link

As an update, I got the following response when asked on the GCC website:

"It's not part of the ABI, but there can be performance benefits from aligning arrays, for example when code is vectorized. It's not possible to easily tell exactly how large the array will be in practice, so even very small ones get aligned.

There's no point in doing this for scalar objects as the next location cannot ever contain a related object."

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Oren Zvi