Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Using 16 bits integers
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-07-03 (18:45)
From: David McClain <dmcclain1@m...>
Subject: Re: [Caml-list] Using 16 bits integers
You can consider adding a very small amount of C code to your OCaml project.
Why throw out the baby with the bath water? I do this sort of thing for
sound synthesis all the time with OCaml. It is a terrific platform for this
kind of work!

- DM

----- Original Message -----
From: <>
To: <>
Sent: Tuesday, July 03, 2001 11:05 AM
Subject: [Caml-list] Using 16 bits integers

> Hello, I'm just new to OCaml. I'm writing a program wich uses a lot of
> 16 bits operations, and writes them to a buffer. For writing into the
> buffer, it is needed for the data to be in 16 bits, not in 32 bits.
> Exactly, the program is like a sound synthesizer, so data cannot be send
> to sound card in 32 bits.
> My problem with OCaml is: how can I manage 16 bits data, and make
> operations with it? I had not seen any type in Ocaml with 16bits lenght
> (int is 32 bits in my machine). This will frustate my project if I do
> not find a solution, so I will use C if there is no other solution...
> but I would not like to do if I can avoid it, because I like very much
> Ocaml.
> I'm hopping your answers. Thanks.
> -------------------
> Bug reports:  FAQ:
> To unsubscribe, mail  Archives:

Bug reports:  FAQ:
To unsubscribe, mail  Archives: