9 ms·
It also didn't have memory segmentation, otherwise known as The Worst Thing. The examples in the post are clearly x86-64 running in 64 bit mode. I.e. it's runn
by minimax 10y ago
It also didn't have memory segmentation, otherwise known as The Worst Thing.
The examples in the post are clearly x86-64 running in 64 bit mode. I.e. it's running in flat model... there is no segmentation to worry about.
- wolfgke 10y agoThe segment registers fs and gs still exist in x86-64 and are used. Under Windows gs (under x86-32 fs) points to the Thread Information Block (TIB): > https://en.wikipedia.org/wiki/Win32_Thread_Information_Block https://en.wikipedia.org/wiki/Win32_Thread_Information_Block Under Linux gs is used for thread-local storage (TLS). But "as a typical programmer" indeed you only have to worry about the internal details of this if you are an OS developer, otherwise you can simply use the appropriate segment override prefix and otherwise don't care about it.
- qwertyuiop924 10y agoOh. Handy. I didn't know that. Stupid outdated resources...
- CalChris 10y agoGoogle's Native Client uses segmentation to enforce sandboxing. http://static.googleusercontent.com/media/research.google.com/en//pubs/archive/34913.pdf http://static.googleusercontent.com/media/research.google.co...