list file from C source

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

list file from C source

跳至解决方案
2,359 次查看
csosza
Contributor I

Hi,

 

How could I generate a list file from C project which at least relatively reflects the flash rom addresses (with source lines if possible)?

 

(1) When I enable "Generate listing file"in the standard settings, I got an lst file but each function starts from 0000 address.

(2) I tried the decode.exe utility, but I got a pure disassembled view (without source lines).

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,324 次查看
CompilerGuru
NXP Employee
NXP Employee

What did you disassemble with the decoder?

 

Use the decoder.exe and disassemble the *.elf file. This should create what you are looking for if the elf file contains debug information.

 

Daniel

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,325 次查看
CompilerGuru
NXP Employee
NXP Employee

What did you disassemble with the decoder?

 

Use the decoder.exe and disassemble the *.elf file. This should create what you are looking for if the elf file contains debug information.

 

Daniel

0 项奖励
回复
1,324 次查看
csosza
Contributor I
How could I generate *.elf file? I have now *.o files.
0 项奖励
回复
1,324 次查看
CompilerGuru
NXP Employee
NXP Employee

Probably the ELF file has the extension *.abs, sorry for the confision. ELF is the file format, the tools are using abs as the default extension for those files.

 

Daniel