Assembler / Disassembly Files

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

Assembler / Disassembly Files

跳至解决方案
2,429 次查看
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
标签 (1)
标记 (1)
0 项奖励
1 解答
768 次查看
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 项奖励
5 回复数
768 次查看
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 项奖励
768 次查看
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 项奖励
769 次查看
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 项奖励
768 次查看
Germarmin
Contributor I
Thanks Tom,

this really was exactly what I was looking for.
0 项奖励
768 次查看
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 项奖励