A
Allen
I know how to specify bytes alignment for a struct, i.e. using
__attribute__((aligned(4))).
But it is unconvenient because it must modify all struct, union and
class declaration.
Is there a compile option for gcc to define global bytes alignment?
For example, something looks like
#gcc -faligned4 -o test test.cpp
Thank you.
Allen
__attribute__((aligned(4))).
But it is unconvenient because it must modify all struct, union and
class declaration.
Is there a compile option for gcc to define global bytes alignment?
For example, something looks like
#gcc -faligned4 -o test test.cpp
Thank you.
Allen