2. Standard compilers don’t produce WebAssembly that works on the web
Segmentation maps a logical address (a 16-bit selector plus a 32-bit offset) to a 32-bit linear address, enforcing privilege and limit checks along the way. Paging then translates that linear address to a physical address, adding a second layer of User/Supervisor and Read/Write protection. The two layers are independent: segmentation is always active in protected mode, while paging is optional (controlled by CR0.PG).
。关于这个话题,服务器推荐提供了深入分析
Bidoof started as a joke. Then it became a legend.
Глеб Макаревичсотрудник Центра Индоокеанского региона ИМЭМО РАН