Skip to content

Commit e8e5765

Browse files
committed
clarify 'memory address'
1 parent ac65bc2 commit e8e5765

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

reference/src/glossary.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,12 @@ In this document, *layout* and [*representation*][representation relation] are n
139139
### Memory Address
140140
[memory address]: #memory-address
141141

142-
A *memory address* is an integer value that identifies where in the physical machine memory some data is stored.
142+
A *memory address* is an integer value that identifies where in the process' memory some data is stored.
143+
This will typically be a virtual address, if the Rust process runs as a regular user-space program.
144+
It can also be a physical address for bare-level / kernel code. Rust doesn't really care either way, the point is:
145+
it's an address as understood by the CPU, it's what the load/store instructions need to identify where in memory to perform the load/store.
146+
147+
Note that a pointer in Rust is *not* just a memory address.
143148
A pointer value consists of a memory address and [provenance][pointer-provenance].
144149

145150
### Niche

0 commit comments

Comments
 (0)