2 ms·
I might be wrong but what came to mind was segmented memory, ie like 8086 where registers are 16bit but (far) pointers are 16:16 (ignoring the quirk with overla
by magicalhippo 5y ago
I might be wrong but what came to mind was segmented memory, ie like 8086 where registers are 16bit but (far) pointers are 16:16 (ignoring the quirk with overlapping segments).
- moring 5y agoThat would make usize a 32-bit integer, regardless of the data width. It does make other hidden assumptions though, such as that there is a single "memory" that is uniquely identified by a usize value, regardless of the way it is accessed. For x86, for example, the same address could either refer to a location in memory or to a location in an I/O device, depending on whether in/out instructions or "normal" instructions were used.
- magicalhippo 5y ago> That would make usize a 32-bit integer, regardless of the data width. Doh, long day at work, misinterpreted "data width".