[erlang-questions] term_to_binary and message passing

Vlad Dumitrescu <>
Thu Dec 28 16:12:43 CET 2006


HI,

> Internally within one VM the float will be represented with 3 words which means
> 12 bytes in a VM built for a 32 bit processor.
> Thus in internal message passing within a VM the float occupies 12 bytes.
> If the VM is BUILT for a 64 bit processor it will use twice as much
> i.e 24 bytes.

The docs say at
http://www.erlang.org/doc/doc-5.5.2/doc/efficiency_guide/part_frame.html:

Float
On 32-bit architectures: 4 words
On 64-bit architectures: 3 words

regards,
Vlad



More information about the erlang-questions mailing list