本文介绍了C ++ vursus汇编。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一种编程语言来设计激光软件,如皮秒甚至更小(飞秒)。我的问题是,我应该使用c ++或Assembly来设计激光软件吗?有些人说程序员编写的汇编代码不一定是优秀编译器创建的汇编代码,因此,最好的选择是使用c ++编写激光软件,一般情况下,速度为至关重要。另一方面,装配非常困难。

我的第二个问题是我编写了MATLAB程序,由于速度的原因,我现在用c ++编写。真的是MATLAB,一个不适合设计软件的软件,速度对它们至关重要吗?

I need a programming language for designing a laser software for very small times like picosecond or even smaller (femtosecond). My question is that , should I use c++ or Assembly for designing a laser software? Some persons say that Assembly codes written by a programmer, aren't necessarily optimum with respect to those created by a good compiler and therefore, say that best choice, is writing with c++ for a laser software and in general, a software that speed is vital to it. From other hand, Assembly is very difficult.
My second question is that I wrote MATLAB programs and because of speed, I write now with c++. Is really MATLAB, a unsuitable software for designing softwares that speed is vital for them?

推荐答案



引用:

Flash ADC肯定是最快的这三种类型。转换基本上在单个并行步骤中执行。对于8位单元,转换发生在几十纳秒内。

Flash ADCs are certainly the fastest type of the three. The conversion is basically performed in a single parallel step. For an 8-bit unit, conversion takes place in a few tens of nanoseconds.



由于转换是并行执行的,因此(需要多少位)无关紧要,但最终你只需要一个纳秒的很大一部分来调用你的程序。因此,即使使用超级计算机,如果你有一台超级计算机,你也无法在皮秒范围内实际编程实时响应,更不用说femto秒了!


Since the conversion is performed in parallel, it won't matter (much) how many bits you require, but in the end you'll need a significant fraction of a nanosecond just to invoke your program. So even with a super computer, if you had one, you can't realistically program for a real-time response in the picosecond range, let alone femto second!


这篇关于C ++ vursus汇编。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 16:04