www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/18/20:21:20

Date: Thu, 18 Sep 1997 17:11:03 -0700 (PDT)
Message-Id: <199709190011.RAA25536@adit.ap.net>
Mime-Version: 1.0
To: csantill AT lausd DOT k12 DOT ca DOT us, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: How to get asm source

At 03:09  9/18/1997 -0700, csantill AT lausd DOT k12 DOT ca DOT us wrote:
>from: csantill AT lausd DOT k12 DOT ca DOT us
>
>Does any body remember how to get GCC to output the asm source
>(foo.s) of your C file (foo.c) and then compile&link? Somebody
>knew it on the list a week or two ago but I forgot to copy it.
Hmm. The standard way is to use `gcc -S' but this stops after doing the
compile, and leaves it at the asm. You can do this:
gcc -Wa,-aln=foo.s foo.c

That outputs the assembler's listing file, which includes the asm but also
the hex machine code, the addresses, and various other junk. But it does
keep going on to the link phase.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019