Alignment not supported?

Florian Weimer fw@deneb.enyo.de
Sun Jan 1 00:00:00 GMT 2017


* 정인배:

> 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)));
};



More information about the Jit mailing list