Re: [Caml-list] Alignment of data

2010-01-27 Thread Goswin von Brederlow
Pascal Cuoq writes: > Goswin von Brederlow wrote: > > > You need to write a new function > > CAMLextern value caml_alloc_double_array (mlsize_t), > > or similar that ensures alignment on 8 byte for double even for 32bit > systems. > > You should also check the CAMLextern valu

Re: [Caml-list] Alignment of data

2010-01-27 Thread Richard Jones
On Wed, Jan 27, 2010 at 06:20:44PM +0100, Christophe Papazian wrote: > Is there a 64-bit PowerPC Linux (ELF) support in ocaml ? I thought > it was only a 64-bit PowerPC OSX (Darwin) support... Yes indeed there is. For years we maintained an out of tree patch to support this for Fedora/ppc64: htt

[Caml-list] Alignment of data

2010-01-27 Thread Christophe Papazian
Dear Xavier Leroy, thank you for your answer I am working on some ppc architecture, and I realize that I have a (very) big slowdown due to bad alignment of data by ocamlopt. I need to have my data aligned in memory depending of the size of the data : floats are to be aligned on 8 bytes, int

[Caml-list] Alignment of data

2010-01-27 Thread Pascal Cuoq
Goswin von Brederlow wrote: You need to write a new function CAMLextern value caml_alloc_double_array (mlsize_t), or similar that ensures alignment on 8 byte for double even for 32bit systems. You should also check the CAMLextern value caml_copy_double (double); that it does the same. If

Re: [Caml-list] Alignment of data

2010-01-27 Thread Xavier Leroy
I am working on some ppc architecture, and I realize that I have a (very) big slowdown due to bad alignment of data by ocamlopt. I need to have my data aligned in memory depending of the size of the data : floats are to be aligned on 8 bytes, int on 4 bytes, etc First, make sure that misal

Re: [Caml-list] Alignment of data

2010-01-27 Thread Goswin von Brederlow
Christophe Papazian writes: > Dear users and developers of OCAML, > > I am working on some ppc architecture, and I realize that I have a > (very) big slowdown due to bad alignment of data by ocamlopt. I need > to have my data aligned in memory depending of the size of the data : > floats are to b

[Caml-list] Alignment of data

2010-01-27 Thread Christophe Papazian
Dear users and developers of OCAML, I am working on some ppc architecture, and I realize that I have a (very) big slowdown due to bad alignment of data by ocamlopt. I need to have my data aligned in memory depending of the size of the data : floats are to be aligned on 8 bytes, int on 4 byt