如何计算一秒钟内执行的指令数 [英] How to count Number of Instructions executed in One Second

查看:455
本文介绍了如何计算一秒钟内执行的指令数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我需要在一秒钟内在for循环中执行指令[甚至汇编语言

指令] ...

任何人都可以给我这个代码...


感谢提前

Hi all

I need to get a count the no of instructions [ even assembly language
instructions ] executed in a for loop in exactly one second...
Can any one please give me the code for this...

THANKS IN ADVANCE

推荐答案

11月11日上午12:12,coaass ... @ gmail.com < coaass ... @ gmail.com>

写道:
On Nov 11, 12:12 am, "coaass...@gmail.com" <coaass...@gmail.com>
wrote:

大家好


我需要在一秒钟内完成for循环执行的指令[甚至汇编语言

指令] ...

任何人都可以给我的代码...


感谢提前
Hi all

I need to get a count the no of instructions [ even assembly language
instructions ] executed in a for loop in exactly one second...
Can any one please give me the code for this...

THANKS IN ADVANCE



请用C语言给我这个代码。 ...

Please give me the code for this in C language....


co ****** *@gmail.com schrieb:
co*******@gmail.com schrieb:

请用C语言给我代码....
Please give me the code for this in C language....



您的问题无法通过C语言提供的方式解决。它可以通过你的架构提供的方式来解决(使用内联

汇编)
(也许)。但是因为这是建筑特定的,你没有提供

你正在研究的建筑 - 失败的原因。

你不是甚至提供了一个名字......所以...我猜不知道原因。

问候,

约翰内斯


-

" PS:Ein Realname w?¤renett。 Ich selbst nutze nur keinen,weil mich die

meisten hier bereits mit Namen kennen。 - Markus Gronotte又名Makus

又名Kosst Amojan又名maqqusz in de.sci.electronics

< 45 ********************** @ newsspool3.arcor-online.net>

Your problem is not solvable by means the C language provides. It can
(maybe) be solved by means your architecture provides (using inline
assembly). But as this is architecture specific and you don''t provide
which architecture you''re working on - lost cause.

You don''t even provide a name... so... lost cause anyways, I guess.

Greetings,
Johannes

--
"PS: Ein Realname w?¤re nett. Ich selbst nutze nur keinen, weil mich die
meisten hier bereits mit Namen kennen." -- Markus Gronotte aka "Makus"
aka "Kosst Amojan" aka "maqqusz" in de.sci.electronics
<45**********************@newsspool3.arcor-online.net>


co*******@gmail.com 写道:

大家好


我需要计算一下指令的数量[甚至汇编语言

指令]在一秒钟内执行for循环...

任何人都可以给我这个代码...


感谢提前
Hi all

I need to get a count the no of instructions [ even assembly language
instructions ] executed in a for loop in exactly one second...
Can any one please give me the code for this...

THANKS IN ADVANCE



一种方法是:


1)通过获取<计算循环中的指令数量br />
来自C编译器的汇编列表。

2)运行循环100秒。


3)除以。


4)完成。


-

jacob navia

jacob at jacob point remcomp point fr

logiciels / informatique
http://www.cs.virginia.edu/~lcc-win32


这篇关于如何计算一秒钟内执行的指令数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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