[comp.unix.aix] How does one compile to assembly?

keller@terra.ucsc.edu (03/06/91)

How does one get the effect of BSD's 'cc -S' on the RS/6000?

I wish to get assembly language output from the C compiler so that I can
run it through a filter which inserts various instructions before the
object code is generated.  (The goal is to collect run-time instruction-mix
and trace information.)

After noting that unsupport of -S and swimming through various documents,
I concluded that -qlist (which outputs all sorts of information to *.lst)
was the closest analog available.  I think that, in time, I might succeed
in (re)constructing *.s from *.lst, but the task looks perverse.  Surely
there is a better way?

--
Jeff Keller              keller@terra.ucsc.edu             (408)427-3602

jsalter@ibmpa.awdpa.ibm.com (03/07/91)

In article <13111@darkstar.ucsc.edu> keller@terra.ucsc.edu () writes:
>How does one get the effect of BSD's 'cc -S' on the RS/6000?

You don't.  See the /usr/lpp/bos/bsdport document for more information
about this option (lack-of).

>Surely there is a better way?

Nope, not at this time.  Please feel free to call up IBM with requests
for it, though.  If enough people want it and *communicate* this to IBM,
it might get in there.

>Jeff Keller              keller@terra.ucsc.edu             (408)427-3602

jim/jsalter  IBM PSP, Palo Alto  T465/(415)855-4427  VNET: JSALTER at AUSVMQ
Internet: jsalter@slo.awdpa.ibm.com         UUCP: ..!uunet!ibmsupt!jsalter 
  PS/2 it, or DIE!  :-)  The ramblings above have nothing to do with Big Blue.

jfc@athena.mit.edu (John F Carr) (03/07/91)

Compiling and using adb to disassemble is easier than parsing the .lst
file.

--
    John Carr (jfc@athena.mit.edu)

pa@appmag.com (Pierre Asselin) (03/08/91)

jsalter@ibmpa.awdpa.ibm.com writes:

~Nope, not at this time.  Please feel free to call up IBM with requests
~for it, though.  If enough people want it and *communicate* this to IBM,
~it might get in there.

Could someone please spell out the canonical procedure?  My CE is
grossly  overworked.   Who  do I talk to, and how do I prevent my
*communicat*ions from disappearing without a trace  somewhere  in
IBM ?

 --Pierre Asselin, R&D, Applied Magnetics Corp.  I speak for me.
   3003jalp@ucsbuxa.ucsb.edu

kstailey@geech.ai.mit.edu (Kenneth Stailey) (03/10/91)

The AIX 03.01.0003.0013 comes with a disasmbler.

--
@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@
 Disclaimer:  This message is sold by weight not volume;                      |
              contents may have settled during shipment.                      @
@ replys to kstailey@churchy.ai.mit.edu or kstailey@leidecker.gsfc.nasa.gov
|  NBCS: B4 f m w- c(+) p+ k+ s+	why jack off when you can jack in?
@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@-@