Solved! Go to Solution.
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
It would, of course, help matters if you mentioned what CPU you are targeting.
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
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
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