什么是使用段寄存器(今天)的优势在哪里? [英] What is the advantage of using segment registers (today)?

查看:286
本文介绍了什么是使用段寄存器(今天)的优势在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图相当长的一段学习什么段寄存器
目的是什么?我所有的准备知道,这来自于过去的(8086)
那里是只有1兆字节的物理内存。但是CPU的过
只有16位宽的地址寄存器。有了这些16位地址
你只能解决64K字节。因此1M字节的地址空间必须被分开
到每个64K大小的段。

i was trying quite a while to learn what the segment registers purpose is? I All ready know that this comes from the past (8086) where there was only 1 MByte of physical memory. But the CPU's had only 16 Bit wide address registers. With these 16 Address bits you could only address 64K Byte. So the 1MByte Address-space had to be separated into segments each of 64K size.

这在我看来是从过去的一个要求,因为在那些工程师的帽子来解决某种方式有限的内存空间,这样的。但我的问题是什么是当今段寄存器的优势在哪里?如何或在哪里你会使用他们在一个有用的方式登记?
如果你需要澄清只是发表评论。

This seems to me to be a requirement from the past where those engineers hat to work around of somehow limited memory space and such. But my question is what is the advantage of the segment registers today? How or where would you use them registers in a useful way? If you need clarification just comment.

推荐答案

可以说,X86-64长模式是今天的技术。在大多数情况下有经典的分割是不存在的,只被用于实际用途和 GS FS。 FS 通常用于在用户模式下各个线程局部和系统数据,而 GS 用于内核模式。后者的使用是由 SWAPGS 指令的支持。

Arguably, x86-64 long mode is the technology of "today". There classical segmentation for the most part is nonexistent, with only FS and GS being used for practical purposes. FS is typically used for various thread-local and system data in user mode, while GS is used for kernel mode. This latter use is supported by the SWAPGS instruction.

这篇关于什么是使用段寄存器(今天)的优势在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆