Can we write like this?
Klass ssc __attribute__((64));
This could convey more info than padding.
Further, I wish, gcc could have provided an attribute
that explicitly forces for the cache line alignment than just
generic alignment. Generic scalar type alignment is not same
as the cache line alignment.
Example:
Klass sc __attribute__((start_at_cache_line));
prabhu-yu|3 years ago
Can we write like this? Klass ssc __attribute__((64));
This could convey more info than padding.
Further, I wish, gcc could have provided an attribute that explicitly forces for the cache line alignment than just generic alignment. Generic scalar type alignment is not same as the cache line alignment.
Example: Klass sc __attribute__((start_at_cache_line));
gpderetta|3 years ago
account42|3 years ago