delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/01/10:42:25

Date: Wed, 1 Mar 2000 12:07:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Eric Rudd <rudd AT cyberoptics DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Combined C/asm listing (was Re: Fastest bitblt?)
In-Reply-To: <38BBDCDA.7CA5C1CE@cyberoptics.com>
Message-ID: <Pine.SUN.3.91.1000301120721.12637F-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 29 Feb 2000, Eric Rudd wrote:

> > use a command line like this:
> >
> >       gcc -c -Wa,-a,-ad [other GCC options] foo.c > foo.lst
> >
> > which will output the combined C/assembly listing to the file `foo.lst'.
> 
> I read this posting with interest, because I have often wanted an
> assembly output listing similar to what Borland produces with the -S
> option, with each C statement interleaved with the assembler code it
> generates.  Unfortunately, the above options do not do this, as was
> claimed -- I only get assembler, binary, and cross references; no C
> source.

Didn't you see my followup?  You need -g in addition to what the FAQ
says (it is already corrected in the on-line version of the FAQ).

- Raw text -


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