哪种情况下汇编速度不够快,所以您需要直接的硬件/布尔逻辑解决方案? [英] What types of situations is assembly not fast enough, so you need a direct hardware / boolean logic solution?

查看:66
本文介绍了哪种情况下汇编速度不够快,所以您需要直接的硬件/布尔逻辑解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始通读汇编艺术,其中有一个关于布尔逻辑的部分,其中指出:

I have started to read through Art of Assembly, and in there is a section on boolean logic, which states:

当然,使用诸如Pascal,C甚至汇编语言之类的语言来指定编程问题的解决方案要比使用布尔方程式来指定解决方案要容易得多.因此,您不太可能会使用一组状态机和其他逻辑电路来实现整个程序.但是,有时候硬件实现会更好.硬件解决方案可以比等效的软件解决方案快一个,两个,三个或更多个数量级.因此,一些时间紧迫的操作可能需要硬件解决方案.

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.

在什么情况下有时会有更好的硬件实现"吗?

In what situations "are there times when a hardware implementation is better"?

推荐答案

您计算机中的图形卡就是一个很好的例子.

The graphics card in your computer would be an excellent example.

内置在计算机CPU指令集中的加密原语将是另一个.

Encryption primitives built into the instruction set of your computer's CPU would be another.

这篇关于哪种情况下汇编速度不够快,所以您需要直接的硬件/布尔逻辑解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆