Mail Archives: djgpp/1998/01/29/10:33:04
From: | Michal Mertl <xmerm05 AT manes DOT vse DOT cz>
|
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: | <Pine.ULT.3.95.980129151343.5511A-100000@manes.vse.cz>
|
References: | <34CFAB07 DOT 376F374C AT btg DOT bombardier DOT com>
|
NNTP-Posting-Host: | manes.vse.cz
|
Mime-Version: | 1.0
|
In-Reply-To: | <34CFAB07.376F374C@btg.bombardier.com>
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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 <stdio.h>
>
> 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
- Raw text -