Date: Thu, 17 Feb 2000 17:39:35 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: #TAN KOK LEONG# 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.)