electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

How to count number of instructions


Post new topic  Reply to topic    EDAboard.com Forum Index -> Electronic Elementary Questions -> How to count number of instructions
Author Message
srianant



Joined: 16 Jun 2006
Posts: 189
Helped: 56


Post28 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


Post28 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


Post28 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


Post28 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
Google Adsense




Post28 Aug 2006 12:50   

Ads




Back to top
srianant



Joined: 16 Jun 2006
Posts: 189
Helped: 56


Post28 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
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Electronic Elementary Questions -> How to count number of instructions
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
Count the number of 1's (23)
car counter to count the number of cars entering university (1)
(8051) how to convert a 16 bit hex number to dec number? (1)
Need instructions how to bypass a password of PLC (3)
How to overwrite old Altera Epld 10k20 instructions (1)
Gate Count Vs Slice Count (1)
How to count inductance? (6)
how to count clock cycles ? (8)
How to count zeros in registers? (5)
How gate count is calculated (8)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS