codewarrior assembler listing cycle count?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

codewarrior assembler listing cycle count?

跳至解决方案
3,553 次查看
admin
Specialist II

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

 

Thanks

标签 (1)
0 项奖励
回复
1 解答
1,178 次查看
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 回复数
1,178 次查看
CompilerGuru
NXP Employee
NXP Employee

It depends.

 

Which codewarrior?

 

0 项奖励
回复
1,178 次查看
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 项奖励
回复
1,178 次查看
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

1,178 次查看
admin
Specialist II

MC9S08AC128 and MC9S08SH8

 

Thanks

 

1,179 次查看
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 项奖励
回复