mirror of
https://github.com/urbit/ares.git
synced 2024-12-23 21:31:57 +03:00
Merge branch 'master' into doc/persistent-memory-proposal
This commit is contained in:
commit
05a4910370
@ -7,12 +7,13 @@ This document describes the current (2022/01/13) state of the memory layout and
|
|||||||
Nouns are represented as machine words with the MSBs as tag bits.
|
Nouns are represented as machine words with the MSBs as tag bits.
|
||||||
By treating a 0 MSB as the tag for a direct atom, we can compute directly with direct atoms without masking the tag.
|
By treating a 0 MSB as the tag for a direct atom, we can compute directly with direct atoms without masking the tag.
|
||||||
|
|
||||||
|------|-----------------------|
|
|
||||||
| MSBs | Noun |
|
| MSBs | Noun |
|
||||||
|
|------|-----------------------|
|
||||||
| 0 | Direct Atom |
|
| 0 | Direct Atom |
|
||||||
| 10 | Cell Pointer |
|
| 10 | Cell Pointer |
|
||||||
| 110 | Indirect Atom Pointer |
|
| 110 | Indirect Atom Pointer |
|
||||||
|------|-----------------------|
|
|
||||||
|
|
||||||
A direct atom is an atom which fits in a machine word, less one bit for the tag. It is stored directly.
|
A direct atom is an atom which fits in a machine word, less one bit for the tag. It is stored directly.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user