delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/01/03:23:58

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Date: Fri, 01 Feb 2002 10:22:07 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "sgrb" <rolando DOT sgarbi3 AT tin DOT it>
Message-Id: <7458-Fri01Feb2002102207+0200-eliz@is.elta.co.il>
X-Mailer: emacs 21.2.50 (via feedmail 8 I) and Blat ver 1.8.9
CC: djgpp AT delorie DOT com
In-reply-to: <f5h68.14021$3J1.438220@news2.tin.it> (rolando.sgarbi3@tin.it)
Subject: Re: FAQ DJGPP error?
References: <f5h68.14021$3J1 DOT 438220 AT news2 DOT tin DOT it>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: "sgrb" <rolando DOT sgarbi3 AT tin DOT it>
> Newsgroups: comp.os.msdos.djgpp
> Date: Thu, 31 Jan 2002 19:40:59 GMT
> 
> FAQ 8.20 to have assembly  and C listing suggests this options:
> gcc -c -wa ,-a , -ad  foo.c
> I get >gcc.exe: unrecognized option  '-wa,-a,-ad' .

Sorry, the FAQ failed to mention that you need the -g switch together
with all the rest.  Add -g, and it will work.

Also note that it's -Wa, capital W.  The full command should be like
this:

   gcc -c -g -Wa,-a,-ad foo.c >foo.lst

> Can we see assembler output?

What do you mean by ``assembler output''?  The assembler outputs
machine instructions; how do you want to see them?

If you mean you want to disassemble the produced code, either a
"disassemble" command in GDB or the --disassemble option of the
`objdump' utility will do what you want.  But that would just show
you the same assembly that "gcc -S" produces.  If you want to see the
disassembly in the Intel syntax, type "set disassembly-flavor intel"
in GDB before disassemblying.

> Another thing : in menu of GCC there isn't "extended asm" (Faq 18.2).

Please type exactly what the FAQ tells:

       info gcc "C Extensions" "Extended Asm"

and you will land on the correct spot.  Alternatively, once you are
inside the GCC manual, type "g Extended Asm" and hit [Enter].

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019