LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-12-2013, 10:40 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,184

Rep: Reputation: 48
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.

Last edited by stf92; 11-12-2013 at 10:42 AM.
 
Old 11-12-2013, 11:32 AM   #2
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,184

Original Poster
Rep: Reputation: 48
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.
 
Old 11-13-2013, 10:50 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
As requested by the OP moved to Programming.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using assembler in GCC , how do how do I reference volatile variables ? Alan5 Programming 6 03-31-2011 06:52 AM
Stupid GCC inline assembler doesn't even support local variable xuancong Programming 18 07-07-2010 04:10 AM
List 4 names from users list and output them to fbusers in numbered ascending order? fezzie Programming 4 02-10-2010 01:05 PM
Gcc Assembler And Link eichmen Programming 4 04-17-2007 07:14 AM
nasm assembler; output numbers? infinity42 Programming 3 11-15-2005 01:02 PM


All times are GMT -5. The time now is 03:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration