In my final question to this site, how would I go about getting the assembly code for a c file inclunding the following includes?
Appears to have worked with
avr-gcc -Os -DF_CPU=16000000UL -mmcu=atmega328p -c -S led.s led.c
I find that sometimes, the output from "avr-objdump -S led.elf" is more useful. It's got less debugging noise, and shows fully resolved addresses for symbols that aren't resolved until link-time.
Just to note about your first post - the .h don't (shouldn't anyway) generate ANY code so you wouldn't see Asm output from those anyway. #include is just a documentation exercise so the C compiler knows how to interface to functions and variables it encounter as it is compiling the C in the file where the #include's are used.
© 2021 Microchip Technology Inc.