Jul 10, 2010 #1 V 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
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
Jul 10, 2010 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,484 Helped 14,756 Reputation 29,794 Reaction score 14,121 Trophy points 1,393 Location Bochum, Germany Activity points 298,357 Using MPLAB simulator's stop watch is the most simple way.
Jul 11, 2010 #3 V 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 FvM said: Using MPLAB simulator's stop watch is the most simple way. Click to expand... 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.
FvM said: Using MPLAB simulator's stop watch is the most simple way. Click to expand... 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.