Assembler / Disassembly Files

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

Assembler / Disassembly Files

Jump to solution
2,398 Views
Germarmin
Contributor I
Hi,

as far as I know it is not possible to create assembler files but only disassembly files.

My question is: can I choose how detailed those files are? Because from the files I created I see no possibility to distinguish functions from interrupts if I did not miss anything. Because this is exactly what I need.
Does anybody know how this is possible? Because from the computer this computer is necessary as well, so it must exist somewhere, right?

Any help would be greatly appreciated. Thank you
Labels (1)
0 Kudos
1 Solution
737 Views
J2MEJediMaster
Specialist I

Look in the Power Architecture Build Tools Reference manual, which has a slew of information on the command-line tools. (Caveat: This is referencing CodeWarrior for Power Architecture v8.8. If you are using Codewarrior for MPC55xx, there might be differences). This manual can be found in the CodeWarrior Help directory.

 

What you are looking for is the -show source option which would be part of the command line to the linker.  You can find this information in the mentioned manual, in the section on Command-Line for Power Architecture Processors, sub-section Library and Linking Command-Line Options. HTH.

 

---Tom

View solution in original post

0 Kudos
5 Replies
737 Views
J2MEJediMaster
Specialist I

It would, of course, help matters if you mentioned what CPU you are targeting. :smileywink:

 

For CodeWarrior for PPCs, go the the project's settings panel (type Alt-F7 to get there), then select the EPPC Disassembler settings panel. Check the Show Source Code option. Now when you disassemble a source file, you'll get a dump that contains the source code lines mixed with the assembly instructions generated for each source line. You can check some of the other options (such as Show Headers and Show Symbol Tables) to get even more information with the disassembly dump.

 

For CodeWarrior for ColdFire, go to the project's settings panel (type Alt-F7 as before) and select the ELF disassembler panel. Check the Show Source Code option, plus any others in that group to add as much detail as you need to the disassembly dump.

 

---Tom

0 Kudos
737 Views
Germarmin
Contributor I
Hi Tom,

thanks again for your hint, I tried this and it probably is the solution for my problem. But I'm still looking for the command line option to achieve this with my make file. Because otherwise it would be too complicated and too much work.

You don't know if and how I can do this?

Best regards
Armin
0 Kudos
738 Views
J2MEJediMaster
Specialist I

Look in the Power Architecture Build Tools Reference manual, which has a slew of information on the command-line tools. (Caveat: This is referencing CodeWarrior for Power Architecture v8.8. If you are using Codewarrior for MPC55xx, there might be differences). This manual can be found in the CodeWarrior Help directory.

 

What you are looking for is the -show source option which would be part of the command line to the linker.  You can find this information in the mentioned manual, in the section on Command-Line for Power Architecture Processors, sub-section Library and Linking Command-Line Options. HTH.

 

---Tom

0 Kudos
737 Views
Germarmin
Contributor I
Thanks Tom,

this really was exactly what I was looking for.
0 Kudos
737 Views
Germarmin
Contributor I

Hi Tom,

 

I'm sorry :smileyhappy: I'm targeting the MPC565 and MPC5554.

 

But I don't use the CodeWarrior GUI but only the compiler itself and start it from my makefile within Eclipse. So it would be easier if I could achieve this by using compiler options. 

But what you wrote about the mixture of  source code and assembly instructions sounds quite good. I'll have a look at that.

 

Thanks

0 Kudos