From: Michal Mertl Newsgroups: comp.os.msdos.djgpp Subject: Re: What's wrong with -fverbose-asm? Date: Thu, 29 Jan 1998 15:18:55 +0100 Organization: Prague University of Economics Lines: 31 Message-ID: References: <34CFAB07 DOT 376F374C AT btg DOT bombardier DOT com> NNTP-Posting-Host: manes.vse.cz Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <34CFAB07.376F374C@btg.bombardier.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 28 Jan 1998, Mario Deschenes wrote: > Hi, everyone > > I wondering if the -fverbose-asm option work properly or not. > I've tested this simple program: > > #include > > void main(void) > { > printf("hello"); > } > > And there's no difference in the test.s file whatever I do: > gcc -S test.c > or gcc -S -fverbose-asm test.c > I thing you could use gcc -c -Wa,-ahldns=list_file_name test.c It's not perfect because it contains also opcodes numeric values, but you can get rid of it. You can run "expand list_file_name >tmpfile" (be sure dos expand will not be executed) and then "cut -b23- tmpfile >finalfile". It produces exactly what you want. The number after -b switch of cut is not real, you have to find yourself, which column is the first one you like. You can write a batchfile to pretify the output for you offcourse. HTH Michal "MiMe" Mertl xmerm05 AT vse DOT cz