TCC already implements __attribute__((aligned(8))) For example: struct X { __attribute__((aligned(8))) char c; };
C11 introduced _Alignas, and C23 adds the keyword alignas. The advantage of having it as a keyword rather than as __attribute__ is that attributes are sometimes treated as optional, while alignment is not optional since it directly affects the generated code In my view, the alignas feature is fundamental enough that it should have been part of the language since C89.
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel