can i test a code in codewarrior4.6 without a target board?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

can i test a code in codewarrior4.6 without a target board?

ソリューションへジャンプ
2,412件の閲覧回数
Xbot
Contributor II
hi,
 
i want to test a code and perform instructions to verify how many clock cycles are spent. Is this possible?
 
thanks,
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
1,405件の閲覧回数
CrasyCat
Specialist III
Hello
 
You can use the simulator for that.
 
I would proceed as follows:
  - Start the simulator and load your code
  - Set a Breakpoint on the beginning of the code snippet on which you want to evaluate the cycle count
  - Set a breakpoint at the end of the code snippet on which you want to measure cycle count
  - Run till first breakpoint is reached.
  - On the debugger Status bar you have different area. Next to the frequency area you have a small
   area denoting the current cycle counts. Double click within that area to reset the cycle count to 0
  - Run till second breakpoint is reached
 
You see the number of cycles between the two breakpoint in the status bar (in the area where you did double click before).
 
I hope this helps
 
CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,406件の閲覧回数
CrasyCat
Specialist III
Hello
 
You can use the simulator for that.
 
I would proceed as follows:
  - Start the simulator and load your code
  - Set a Breakpoint on the beginning of the code snippet on which you want to evaluate the cycle count
  - Set a breakpoint at the end of the code snippet on which you want to measure cycle count
  - Run till first breakpoint is reached.
  - On the debugger Status bar you have different area. Next to the frequency area you have a small
   area denoting the current cycle counts. Double click within that area to reset the cycle count to 0
  - Run till second breakpoint is reached
 
You see the number of cycles between the two breakpoint in the status bar (in the area where you did double click before).
 
I hope this helps
 
CrasyCat
0 件の賞賛
返信
1,405件の閲覧回数
Xbot
Contributor II
it sure did help a lot with regards to the procedure where you can reset the clock cycle... thanks.
0 件の賞賛
返信