list file from C source

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

list file from C source

Jump to solution
1,765 Views
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).

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

View solution in original post

0 Kudos
Reply
3 Replies
731 Views
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 Kudos
Reply
730 Views
csosza
Contributor I
How could I generate *.elf file? I have now *.o files.
0 Kudos
Reply
730 Views
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