gpt4 book ai didi

assembly - 在什么类型的情况下汇编速度不够快,因此您需要直接的硬件/ bool 逻辑解决方案?

转载 作者:行者123 更新时间:2023-12-02 19:22:00 29 4
gpt4 key购买 nike

我已经开始通读 Art of Assembly ,其中有一个关于 bool 逻辑的部分,其中指出:

Of course, it is much easier to specify a solution to a programming problem using languages like Pascal, C, or even assembly language than it is to specify the solution using boolean equations. Therefore, it is unlikely that you would ever implement an entire program using a set of state machines and other logic circuitry. Nevertheless, there are times when a hardware implementation is better. A hardware solution can be one, two, three, or more orders of magnitude faster than an equivalent software solution. Therefore, some time critical operations may require a hardware solution.

在什么情况下“有时硬件实现会更好”?

最佳答案

计算机中的显卡就是一个很好的例子。

内置于计算机 CPU 指令集中的加密原语是另一种情况。

关于assembly - 在什么类型的情况下汇编速度不够快,因此您需要直接的硬件/ bool 逻辑解决方案?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27607499/

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