0
unsigned long long loc[8] __attribute__((aligned(64)))

Could someone explain what attribute here does?

Also what would be the address of loc[1] be here?

nogeek001
  • 713
  • 1
  • 7
  • 14

1 Answers1

1

Your unsigned long long array will be aligned on a 64-byte boundary. loc[1] will be at <base address> + sizeof(unsigned long long) since aligned only controls the base address of the structure.

Olipro
  • 3,489
  • 19
  • 25