Newsgroups: comp.os.msdos.djgpp From: #TAN KOK LEONG# Subject: How to generate assembly code that contain the C code? (Urgent) Message-ID: <0CF260C495FED111A6610000F866308D0ABC9475@mail3.ntu.edu.sg> Sender: #TAN KOK LEONG# Date: Thu, 17 Feb 2000 20:01:37 +0800 MIME-Version: 1.0 Lines: 34 X-Newsreader: Microsoft (R) Exchange Internet News Service Version 5.5.2448.0 Content-Type: text/plain; charset="iso-8859-1" To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, Can someone tell me how to generate a list file (or a assembly file) that contains the C code together with the assembly it was converted to? 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 Please reply to me as soon as possible if you know. Thank you. Yours faithfully, Tan Kok Leong Instrumentation & System Engineering Lab Division of Control & Instrumentation S1-B4b-06, School of EEE Nanyang Technological University Nanyang Avenue Singapore 639798 Tel: 65-790 5472 Email: pa2860919 AT ntu DOT edu DOT sg