Breakpoint in MACRO - IAR Assembly MSP430 -


i trying measure clocks each instruction takes when executed in assembly program iar won't allow me set breakpoints inside macro. can set breakpoint before macro call , click "step over" few times until comes out of loop cannot see each instruction on macro executed, can see same instruction flash each time (the 1 calls macro) until finishes , moves next instruction.

does know how put breakpoint inside macro? or how measure clocks each instruction inside macro takes?

thanks!

if set breakpoint before macro can set breakpoint @ point in disassembly window code generated macro function listed. can step through code in way setting breakpoints on disassembled code.

if want know how many clocks or processor cycles macro takes run can either use data sheet processor add cycle counts each of instructions in compiled output visible in disassembly window, or can @ cyclecounter value in cpu registers window. works in debugger simulator mode or families of msp (i use msp430f5xxx) works physical devices , jtag/spy-bi-wire interface.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -