-   Programming (
-   -   Making gcc list the assembler output. (

stf92 11-12-2013 10: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 11:32 AM

I found a way. I did

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 10:50 AM

As requested by the OP moved to Programming.

All times are GMT -5. The time now is 08:59 AM.