How to generate listing files (lss and lst)

Asked by Janusz Gwozdz

Hello!
I've tried to generate listings files without success. I'm thinking about files known as *.lss and *.lst in avr-gcc toolchain. Now i work with CooCox (CoIDE 1.6.2) and Yours toolchain. I tried sequence as follows:
-Wa,-adhlns

-Wa ->passes switches to assembler
-adhlns ->tells how output files should looks like

After that compilation takes a lot of more time, and its print some information on the standard output window, but no file is created.
Is there possibility to chose witch files i want disassembly??

Thank You in advance.
Janusz.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
chengbin (can-finner) said :
#1

First apology that I am not familiar with avr-gcc.
With our toolchain, you can specify below command line option to generate c+assembly code lst file:

-Wa,-adhlns=xxx.lst

As for using it in Coocox, you should refer to their manual about how to pass option in the IDE.

Hoping this can help.

Revision history for this message
Janusz Gwozdz (elektron44) said :
#2

Hello my friends!

Thank You very much. Now i get output file, but it still contain to much information i don't need. What i want get is pure disassembly code containing address, value of this address and of course assembly code of each/ specified sections.
In the mean time i found that solution for me is tool known as "arm-none-eabi-objdump.exe". I use it like this:

arm-none-eabi-objdump.exe -D filename.elf > xxx.lst.

And that's all. After this i got file containing exactly what i wont. The only problem i got now is how to use this tool via compiler or linker scripts. For now I created a simple *.bat file which do every thing so basically my problem is solved but i try to ask of CooCox forum how to do it with scripts, and let You know about possibilities.

Can you help with this problem?

Provide an answer of your own, or ask Janusz Gwozdz for more information if necessary.

To post a message you must log in.