August 13th, 2003, 11:29 PM
Join Date: Jul 2003
Time spent in forums: 5 h 43 m 42 sec
Reputation Power: 0
[gcc] attribute aligned
I am a beginner in C, et i have some problem understanding the aligned attribute of gcc.
ex <type> x __attribute__((aligned(nb_bytes))));
(x is the name of the variable, type is its type, and nb_bytes the number of byte to align ).
I test on a solaris machine,
and for example.
i do :
char x __attribute__((aligned(4)));
but the adress of x (&x), is never like &x % 4 == 0
and what can be the maximun size of aligned (is it the max size of memory that the proc can take in 1 clock ?? )
thanks for your help