[ILUG] gcc compile options

RenWei renwei at huawei.com
Wed Nov 8 10:46:02 GMT 2000


hi ,
 i want to know how "align" works in gcc .
i use this in my program, run in a X86 box, RedHat 6.2 full installed:

int a __attribute__ ((aligned(8)));

printf("size of a : %d \n", sizeof(a));

i want it's size be 8 bytes, by i get 4.
anyone can tell me how to use align in detail?
           
    thanks 
             renwei.





More information about the ILUG mailing list