gpt4 book ai didi

little-man-computer - 为什么 Little Man Computer 中没有乘法或除法功能

转载 作者:行者123 更新时间:2023-12-02 05:17:01 29 4
gpt4 key购买 nike

您好,我目前正在使用 Little Man Computer对于一个学校项目,我知道 LMC 有一个 ADD 和一个 SUB 功能。但是我知道 LMC 中没有乘法或除法函数,我想知道为什么会这样。

最佳答案

LMC 用于教育目的,并非旨在提高效率。

“The Architecture of Computer Hardware and System Software”(第 4th 版,2009 年),第 6 章是 LMC 的主要引用资料之一。那一章以这句话开头:

The power of a computer does not arise from complexity.

这是澜湄合作旨在传达的关键信息之一。

在第 6.4 节中,Irv Englander 写道:

The nine instructions that make up the instruction set that we have presented are sufficient to perform the steps of any computer program, although not necessarily in the most efficient way [...]

The real computer differs mostly in the variations to these instructions that are provided, and with the addition of a few instructions that provide programming convenience, particularly multiplication and division instructions, and also instructions that shift the data in a word left or right.

关于little-man-computer - 为什么 Little Man Computer 中没有乘法或除法功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34495125/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com