codewarrior assembler listing cycle count?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

codewarrior assembler listing cycle count?

Jump to solution
3,160 Views
admin
Specialist II

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

 

Thanks

Labels (1)
0 Kudos
1 Solution
785 Views
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

View solution in original post

0 Kudos
5 Replies
785 Views
CompilerGuru
NXP Employee
NXP Employee

It depends.

 

Which codewarrior?

 

0 Kudos
785 Views
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 Kudos
785 Views
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

785 Views
admin
Specialist II

MC9S08AC128 and MC9S08SH8

 

Thanks

 

786 Views
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 Kudos