Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - #include <stdio.h>
- struct Struct1 {
- char x;
- int y;
- } __attribute__ ((aligned (16)));
- struct Struct1 tCheck;
- int main()
- {
- printf( "Alignment = %i\r\n", sizeof(tCheck) );
- return 0;
- }
- // G:\mingw>bin\gcc.exe align.c -o align.exe
- // G:\mingw>align
- // Alignment = 16
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment                    
                 
                    