delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/17/12:20:46

Date: Thu, 17 Feb 2000 17:39:35 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: #TAN KOK LEONG# <PA2860919 AT ntu DOT edu DOT sg>
cc: djgpp AT Delorie DOT com
Subject: Re: How to generate assembly code that contain the C code? (Urgent)
In-Reply-To: <0CF260C495FED111A6610000F866308D0ABC9475@mail3.ntu.edu.sg>
Message-ID: <Pine.SUN.3.91.1000217173823.24026A-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 Thu, 17 Feb 2000, #TAN KOK LEONG# wrote:

> I tried the command given in the FAQ (FAQ8_20) as shown below but it
> only generate the assembly code and some other information. The
> corresponding C code is not added the list file generated. 
> gcc -c -Wa,-a,-ad myprog.c > myprog.lst

You need to add -g to the GCC options, otherwise the assembler doesn't 
have enough information to print the source lines.  (This is described in 
the assembler docs.)

- Raw text -


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