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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -