LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Making gcc list the assembler output. (http://www.linuxquestions.org/questions/programming-9/making-gcc-list-the-assembler-output-4175484347/)

stf92 11-12-2013 11:40 AM

Making gcc list the assembler output.
 
Hi: I want to see the assembler output produce by gcc. There are then two things I should specify, I think: (a) Print a listing file. (b) Stop processing after assembling. How do I do it?

EDIT: gcc man page does not seem to specify how to get a listing file.

stf92 11-12-2013 12:32 PM

I found a way. I did
Code:

avr-gcc -S -Wall -O2 -Iusbdrv -I. -mmcu=attiny85 da.c
I got da.s, an assembler input file to an assembler. To get an assembly listing, I'll try to assemble this file.

TobiSGD 11-13-2013 11:50 AM

As requested by the OP moved to Programming.


All times are GMT -5. The time now is 01:20 PM.