Listing Files

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

I'm just getting started with avr32-gcc and AVR32 Studio. To obtain some examples of assembly language code I often ask my compilers to provide me with a listing. From \usr\local\bin I can run avr32-gcc with a -S switch to produce an assembler file, and I can run avr32-as with -ahls and stdout redirected to .lst to get the listings I require. That is all well and good but I'm having trouble with the standard include files like io.h. I've tried various combinations of -march= and -mpart= to no avail. There is an error cascade from the standard header files that goes on for quite a while with a main() that contains a just while(1); in it and no other references.

We never have time to do it right,
but we always have time to do it over

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

For the time being I've just explicitly defined the appropriate symbol at the beginning of my test file and all is well.

We never have time to do it right,
but we always have time to do it over

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

Try:
avr32-objdump –h –S *.elf > output.lss

-sma

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

sma wrote:
Try:
avr32-objdump –h –S *.elf > output.lss

-sma


This was a very helpful suggestion. Thank you Masked Man.

We never have time to do it right,
but we always have time to do it over

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

hehe ;-)