🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52898

Re: wanting .s and .o output in same compile

#52898
From: Doug Urner
Date: Thu, 30 Apr 1992 05:40
14 lines
1247 bytes
phil@ux1.cso.uiuc.edu (Phil Howard) writes:

>I'd like to get the .s and the .o output file in the same compile.
>Is there any way to do this?  I read the man page and the command
>line options seem to only let me choose one or the other.

How about tee?  Something like:

  gcc -S [other args] foo.c | tee foo.s | as [whatever switches it needs]
-- 
Doug Urner, dlu@wobble   "They tear down our comrades like leaves from a tree,
dlu UNIX Consulting       leaves from a tree, leaves from a tree, but the
Bellingham, WA            tree still stands, its roots locked to the land."
206/676-5759                              -- Song of the Exile,  Barry Guilder
Technical Details
Message-ID: <1992Apr30.054052.5804@wobble.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!mips!cs.uoregon.edu!ogicse!henson!nyssa!mtbaker!wobble!dlu
References: <1992Apr27.224018.16866@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,a1a7a869543aecc3
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-04-29 22:40:52 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!mips!cs.uoregon.edu!ogicse!henson!nyssa!mtbaker!wobble!dlu
From: dlu@wobble.uucp (Doug Urner)
Newsgroups: gnu.gcc.help
Subject: Re: wanting .s and .o output in same compile
Message-ID: <1992Apr30.054052.5804@wobble.uucp>
Date: 30 Apr 92 05:40:52 GMT
References: <1992Apr27.224018.16866@ux1.cso.uiuc.edu>
Organization: dlu UNIX Consultants
Lines: 14