codewarrior assembler listing cycle count?

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

codewarrior assembler listing cycle count?

ソリューションへジャンプ
3,215件の閲覧回数
admin
Specialist II

Is it possible (and if yes how) to include cycle count in assembler listing from Codewarrior?

 

Thanks

ラベル(1)
0 件の賞賛
1 解決策
840件の閲覧回数
CrasyCat
Specialist III

Hello

 

This is not supported by the assembler, but you can get the decoder to provide you with this information.

 

- Open your project in CodeWarrior

- Open the target settings dialog

- Switch to  "Assembler for HC08" Panel

- Check "Use Decoder to generate Disassembly listing"

- Switch to "Importer for HC08" Panel

- enter command -T in the Command Line Arguments edit box.

- Click OK to close the Target Settings dialog

- Click right on the .asm file name in the .mcp window and select "Disassemble"

 

A new window will be opened showing the disassembly listing with cycle count in front of each instruction.

 

Output will look like :

00000040 87       [2]    PSHA  

 

where [2] indicates there a 2 cycles for PSHA.

 

I hope this helps

 

Keep in mind this works for HC08, HCS08 and RS08 but not for Coldfire.

 

CrasyCat

Message Edited by CrasyCat on 2009-09-18 10:35 AM

元の投稿で解決策を見る

0 件の賞賛
5 返答(返信)
840件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee

It depends.

 

Which codewarrior?

 

0 件の賞賛
840件の閲覧回数
admin
Specialist II

CodeWarrior IDE Version 5.9.0 Build 2830


CW Development Studio for Microcontrollers V6.2 ColdFireV1 CN128 Service Pack, build 081107.

CodeWarrior Development Studio for Microcontrollers V6.2 ColdFireV1 JM32 Service Pack, build 080723.
CodeWarrior Development Studio for Microcontrollers V6.2 HCS08 FL16 Service Pack, build 081113.
CodeWarrior Development Studio for Microcontrollers V6.2 HCS08 SF4 Service Pack, build 081110.
CodeWarrior Development Studio for Microcontrollers V6.2 HCS08 SV16 Service Pack, build 081120.
CodeWarrior Development Studio for Microcontrollers V6.2 Release, build 8127.
CodeWarrior Development Studio for Microcontrollers V6.2.2 Patch, build 9104.

 

hw_hc08_assembler.dll  5.0.14.909

0 件の賞賛
840件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee

Which supports RS08, S08, HC08 and CF V1....

So for which architecture, for which derivative?

I know that the RS08/S08/HC08's support this as option when using the decoder to disassemble,

check the manual. The compiler may have an option too.

I'm less familar with the CF tools, so I just don't know for those.


Daniel

840件の閲覧回数
admin
Specialist II

MC9S08AC128 and MC9S08SH8

 

Thanks

 

841件の閲覧回数
CrasyCat
Specialist III

Hello

 

This is not supported by the assembler, but you can get the decoder to provide you with this information.

 

- Open your project in CodeWarrior

- Open the target settings dialog

- Switch to  "Assembler for HC08" Panel

- Check "Use Decoder to generate Disassembly listing"

- Switch to "Importer for HC08" Panel

- enter command -T in the Command Line Arguments edit box.

- Click OK to close the Target Settings dialog

- Click right on the .asm file name in the .mcp window and select "Disassemble"

 

A new window will be opened showing the disassembly listing with cycle count in front of each instruction.

 

Output will look like :

00000040 87       [2]    PSHA  

 

where [2] indicates there a 2 cycles for PSHA.

 

I hope this helps

 

Keep in mind this works for HC08, HCS08 and RS08 but not for Coldfire.

 

CrasyCat

Message Edited by CrasyCat on 2009-09-18 10:35 AM
0 件の賞賛