如何计算在汇编程序中执行的指令总数 [英] How to count the total number of instructions executed in an assembly program

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

问题描述

执行以汇编语言编写的程序时,计算CPU执行的指令总数的最快方法是什么?对于小型程序,可以手动执行此操作,但是对于大型程序?我使用Mars4在汇编中编写.

What is the fastest way to calculate the total number of instructions executed by the CPU when executing a program written in assembly ? For small programs can do this manually , but for larger programs ? I write in assembly using Mars4.

推荐答案

单击工具-> 指令计数器-> 连接到MIPS .然后运行您的程序.

Click Tools -> Instruction Counter -> Connect to MIPS. Then run your program.

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

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