Re: speed of 32 bit versus 64 installations

"Robert Jakob [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
On 25 Jan 2015, at 23:28, [email protected] [ocaml_beginners] <[email protected]> wrote:
> Another question.  The ocaml version on try.ocamlpro.com has 32-bit
> integers.  max_int is 2147483647.  I've never seen a release of ocaml
> with 32 bit integers.  Normally it is 31 bits or 63 bits.  What gives?
The reason is found in the memory representation of values in the runtime.
One bit is needed to distinguish pointers (boxed values) from “normal”
integers. That is why you have one bit less. See here
https://realworldocaml.org/v1/en/html/memory-representation-of-values.html#distinguishing-integer-and-pointers-at-runtime

r.



------------------------------------

------------------------------------

Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners
The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid flames etc.
------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ocaml_beginners/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ocaml_beginners/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.