* 정인배:
> I need to align a type for calling an external function.
>
> How do I set the alignment for a type like the struct below?
>
> struct my_arg {
> int a;
> alignas(32) int b;
> };
>
> I don't see any option for giving the alignment requirement to b.
This should work:
struct my_arg {
int a;
int b __attribute__ ((aligned (32)));
};