Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
 

shaikhsarfraz said:
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

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

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top