Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!ibmsupt.uucp!steve From: steve@qe2.paloalto.ibm.com Newsgroups: comp.unix.aix Subject: Re: generating assembly from c source Keywords: assembler compiler options Message-ID: <1990Jul12.010544.4804@ibmpa> Date: 12 Jul 90 01:05:44 GMT References: <914@nlsun1.oracle.nl> Sender: steve@ibmpa (Steve DeJarnett) Reply-To: steve@ibmsupt.UUCP (Steve DeJarnett) Organization: IBM AWD Development, Palo Alto Lines: 27 In article <914@nlsun1.oracle.nl> hbergh@oracle.nl (Herbert van den Bergh) writes: >Can anyone tell me if it is possible to generate an assembly >source from a c source that can be assembled again with /bin/as? >I'm using AIX 3.1 9021. It's not possible. Short of writing a disassembler, it can't be done. You can get some partially informative information by using: cc -qlist file.c This produces output into 'file.lst'. Probably not exactly what you're looking for, but it might be of some use. >On other systems I use there is a -S flag to the cc command which >does this, but not on AIX 3.1. Correct. As mentioned above, it's not supported by the AIX C compiler. >Trying to fool the compiler by replacing /bin/as doesn't work either >because it isn't invoked at all. True. The compiler goes straight to machine code. It doesn't translate to assembler first. >Herbert van den Bergh, ORACLE Europe hbergh@oracle.nl, hbergh@oracle.com >Rijnzathe 6, NL-3454 PV De Meern uunet!mcsun!orcenl!hbergh >Phone: +31-3406-94211