Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site sftri.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!mhuxm!sftig!sftri!jss
From: jss@sftri.UUCP (J.S.Schwarz)
Newsgroups: net.lang.c
Subject: Re: more questions about efficient C code
Message-ID: <463@sftri.UUCP>
Date: Sat, 6-Jul-85 12:28:12 EDT
Article-I.D.: sftri.463
Posted: Sat Jul  6 12:28:12 1985
Date-Received: Sun, 7-Jul-85 05:35:56 EDT
References: <474@crystal.UUCP> <420@enmasse.UUCP> <2367@sun.uucp> <422@gatech.CSNET>
Distribution: net
Organization: AT&T Bell Laboratories, Summit N.J.
Lines: 18

>
> Sorry, but 'cc' is smart enough to run the optimizer on the assembler
> if you give it 'cc -S -O foo.c'.  foo.s will be optimized assembly.
> -- 

AT&T compilers these days all come with a tool, call "dis", for
disassembler. that look at object files and tell you exactly what
instructions are in them.

This is neccessary because it is sometimes not possible to look at a
.s and tell exactly what instructions the assembler will produce. For
example an assembler might replace some long forms of jumps by short
forms.

Jerry Schwarz
attunix!jss
AT&T-IS
Summit, N.J.