How to count number of instructions

Status
Not open for further replies.

srianant

Newbie level 6
Joined
Jun 16, 2006
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,372
c get number of instructions

hello,

can anyone tell me how to count number of instructions in a program?

regards,
-Sri
 

count number of instructions

Hi,
First you specify what sort of language you are using.
If you are speaking about machine level language like that for 8085 than you can calculate it manually and then you can get the T states associated with it than you can calculate the total machine cycles.
If you want the no. os instructions for some other language please specify.

Thanks
Shaikh Sarfraz
 

counting number of instructions

you can do as i'm doing each time

take a copy of all of them and past them in a matlab M-file

and you can see the number of lines in this M-file
 

Hi
I did this by counting the number of bytes written to the program memory

Thanks
 


It is written in Higher level language program (HLL) like C or C++
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…