Counting number of instructions in CCS C

Status
Not open for further replies.

vsmGuy

Advanced Member level 2
Joined
Jun 26, 2006
Messages
503
Helped
44
Reputation
88
Reaction score
15
Trophy points
1,298
Location
VddVss
Activity points
3,882
I would like to find out, *without* opening the assembly listing, the number of instructions for a line ( or a number of lines ) in CCS C.

Is this possible ( even in conjuction with tools like MPLAB using the plugin )?

For example,

1. I want to find out how many instructions

Code:
delay_us(200);

generates

2. I want to find out how many instructions

Code:
set_timer1(0);
delay_us(200);

generates

3. Then, I would like to count the number of clock cycles it took to execute each function, *without* opening the assembly listing
 

Using MPLAB simulator's stop watch is the most simple way.
 
Reactions: vsmGuy

    vsmGuy

    Points: 2
    Helpful Answer Positive Rating
FvM said:
Using MPLAB simulator's stop watch is the most simple way.

I am looking for some instructions

I remember doing this a long time ago - and it required a little bit of fiddling around - can't seem to find those instructions.
 

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