作业帮 > 英语 > 作业

英语翻译What are the advantages and disadvantages of supporting

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/21 16:43:23
英语翻译
What are the advantages and disadvantages of supporting memorymapped I/O to device control registers?
Answer:The advantage of supporting memory-mapped I/O to device
control registers is that it eliminates the need for special I/O instructions from the instruction set and therefore also does not require the
enforcement of protection rules that prevent user programs from ex-
ecuting these I/O instructions.The disadvantage is that the resulting
flexibility needs to be handled with care; the memory translation units
need to ensure that the memory addresses associated with the device
control registers are not accessible by user programs in order to ensure
protection
支持存储映像的I/O访问设备控制寄存器,这样做的优势和劣势是什么?
回答:支持存储映像的I/O访问设备控制寄存器的优势是:他不需要特殊的I/O指令集,所以也不需要使用某种保护措施来防止运行用户程序时接触这些I/O指令.劣势是:产生的运行结果的多变性需要格外小心,记忆编译单元需要确定存储地址和与之相关的设备控制寄存器不能被用户程序进入,以确保它们是受保护的.