Linux 系统调用 [英] Linux System Calls
问题描述
Linux 系统调用在较旧的 (8086/88) 英特尔 CPU 与更现代的 CPU 上的实现方式随着时间的推移有何变化.
Whats the changed over time on how Linux system calls were implemented on older (8086/88) Intel CPUS vs more modern CPU's.
推荐答案
最大的变化是更新的 x86(和 Intel 64/AMD64)处理器上的 sysenter/sysexit(Intel 的创建)和 syscall/sysret(AMD 的版本)指令.与之前使用的中断方法相比,这些方法大大加快了系统调用的速度.这与减少处理器在调用系统调用时必须经过的步骤有关,您可以在 英特尔手册.
The biggest change is the sysenter/sysexit (Intel's creation) and syscall/sysret (AMD's version) instructions on newer x86 (and Intel 64/AMD64) processors. These speed up system calls drastically compared to the interrupt method used previously. This has to do with reducing the steps the processor must go through when invoking a system call, and you can read up on them in the Intel manuals.
这篇关于Linux 系统调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!