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.

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.
 
  • Like
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top