generation of .lst et .map

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I use the AVR GCC C compiler. I success in compiling the project and it generate me an OBJ file.
But what I want it is to generate an LST file and an MAP file.

So, How can I generate an MAP file and LST file? Where is the option/command to do that ?

Regards,
yann

admin's test signature
 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

To have a lst file compile with
-Wa,-ahlms=outfile.lst
(I'm compiling with avr-gcc -c -g -O3 -Wall -Wstrict-prototypes -Wa,-ahlms=outfile.lst -mmcu=at90s8515 -I outfile.c -o outfile.o)

To generate a .map file link with
-Wl,-Map=outfile.map
(I'm linking with avr-gcc outfile.o -Wl,-Map=outfile.map,--cref -mmcu=at90s8515 -o outfile.elf

cu
Holger