| Author |
Message |
srianant
Joined: 16 Jun 2006 Posts: 189 Helped: 56
|
28 Aug 2006 11:35 c get number of instructions |
|
|
|
|
hello,
can anyone tell me how to count number of instructions in a program?
regards,
-Sri
|
|
| Back to top |
|
 |
shaikhsarfraz
Joined: 08 Aug 2006 Posts: 309 Helped: 19
|
28 Aug 2006 12:00 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
|
|
| Back to top |
|
 |
ceaser
Joined: 26 Dec 2005 Posts: 122 Helped: 10 Location: Egypt
|
28 Aug 2006 12:02 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
|
|
| Back to top |
|
 |
haytham
Joined: 06 Jun 2004 Posts: 225 Helped: 14 Location: Egypt
|
28 Aug 2006 12:50 Re: How to count number of instructions |
|
|
|
|
Hi
I did this by counting the number of bytes written to the program memory
Thanks
|
|
| Back to top |
|
 |
Google AdSense

|
28 Aug 2006 12:50 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
srianant
Joined: 16 Jun 2006 Posts: 189 Helped: 56
|
28 Aug 2006 14:27 Re: How to count number of instructions |
|
|
|
|
| shaikhsarfraz wrote: |
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++
|
|
| Back to top |
|
 |