Mail Archives: djgpp/1998/01/28/17:20:25
From: | Mario Deschenes <mdeschen AT btg DOT bombardier DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | What's wrong with -fverbose-asm?
|
Date: | Wed, 28 Jan 1998 17:02:47 -0500
|
Organization: | Bell Network Solutions
|
Lines: | 43
|
Message-ID: | <34CFAB07.376F374C@btg.bombardier.com>
|
NNTP-Posting-Host: | 207.61.235.2
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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 was expecting something like:
.file "test.c"
gcc2_compiled.:
___gnu_compiled_c:
.text
LC0:
.ascii "hello\0"
.align 2
.globl _main
void main(void) <----------- that's what I want
{ <-----------
_main:
pushl %ebp
movl %esp,%ebp
call ___main
printf("hello"); <----------
pushl $LC0
call _printf
addl $4,%esp
L1:
leave
} <----------
ret
Anybody got an answer?
- Raw text -