Hi,
I need to make the following structure into
an instance of Storable:
struct {
double w[2];
}
Can I assume that its function 'alignment' should
return the same as "alignment (1::CDouble)"? Or
should it be "2 * alignment (1::CDouble)"?
(I've read the wikipedia article about memory alignment,
and what I understand is that there's a better alignment
for hardware efficiency but compilers and programmers can
do almost anything about it. What can I do when writing
a library wrapper if I don't know what kind of compiler
pragmas were used in all platforms that library was
compiled?)
Thanks,
Maurício
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe