align1.c
来自「this is a gcc file, you can download it 」· C语言 代码 · 共 22 行
C
22 行
// Test that __attribute__ ((aligned)) is preserved.// The alignment used to be 64 but Cygwin does not// support an alignment greater than 16 and COFF // not support an alignment greater than 4.extern "C" int printf (const char *, ...);typedef float at[4][4] __attribute__ ((aligned));float dummy[4][4][15];static volatile at a1[15];float f1 __attribute__ ((aligned));intmain (void){ printf ("%d %d\n", __alignof (a1), __alignof (f1)); return (__alignof (a1) < __alignof (f1));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?