OCaml's char type internal implementation

Hi.

I’m currently trying to figure out how the char basic type is represented in the memory. I went to the official OCaml github repository to find information about this. According to the repository’s description, it contains the standard library’s implementation and the compilers.

Do I have to explore the compiler’s code in order to find this information ? Maybe I’m missing a document somewhere in the manual that would explain how things are done at a lower level ?

Thanks for your replies.

The chapter about the C interface in the OCaml manual has the information.

1 Like