www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/07/23:54:26

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199606080334.AA126164892@relay1.geis.com>
Date: Sat, 8 Jun 96 03:14:00 UTC 0000
To: j_bond_007 AT usa DOT pipeline DOT com
Cc: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: Listing switch?

Reply to message 8703141    from J_BOND_007 AT US on 06/06/96  9:11PM


>How do I get the DJGPP compiler to output
>the compiler listing to a file?

What listing are you trying to get?  The messages gcc prints when
it compiles your program, or the output from your program?  To do
the former, simply use the 'redir' command to pipe output to the
file like so:

redir -o gcc.out -eo gcc -g -o foo.exe foo.c

Look at the docs for redir for an explanation.  If you want to get your
program's output, you can do the same thing with it.

Getting programs to output to both the screen and a file at the same
time can get interesting, though.  If that's what you want, it'd take
something a lot heavier than a simple command-line switch.

John

P.S.:  What's with the name?!

- Raw text -


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