LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 08-29-2004, 10:53 AM   #1
LongName
Member
 
Registered: Aug 2004
Posts: 33

Rep: Reputation: 15
How may I tell gcc to generate an assembly file?


How may I tell gcc to generate an assembly file?

Thanks in advance!
 
Old 08-29-2004, 12:06 PM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,261

Rep: Reputation: 45
use the -S option, its documented in the man page
 
Old 08-29-2004, 12:12 PM   #3
irfanhab
Member
 
Registered: Jan 2004
Location: Pakistan
Distribution: OpenSuse 10.2, Slackware 11, Solaris 10
Posts: 415

Rep: Reputation: 34
assembly in gcc!!
I use NASM for that
 
Old 08-29-2004, 02:12 PM   #4
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 417

Rep: Reputation: 31
Quote:
Originally posted by irfanhab
assembly in gcc!!
I use NASM for that
...whaaaaat?
I dont think you understood the question.
 
Old 08-30-2004, 02:31 AM   #5
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
as an aside...you can use -save-temps option on gcc to save the intermediate files ..like the preprocessed as .i, assembly file as .s
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
doubts about assembly code generated from gcc morph_ind Programming 9 05-28-2005 12:08 AM
Can gcc cross-compile C code to M68K Assembly? lowpro2k3 Programming 1 03-25-2005 07:50 AM
inline assembly in gcc gursev Programming 2 03-04-2005 02:17 AM
problems with gcc inline assembly using xmm registers Y0jiMb0 Programming 3 12-05-2004 02:59 PM
subrouine_call in gcc inline assembly sakeeb Programming 4 08-15-2002 10:22 PM


All times are GMT -5. The time now is 09:32 AM.

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
Open Source Consulting | Domain Registration