more questions about efficient C code

J.S.Schwarz jss at sftri.UUCP
Sun Jul 7 02:28:12 AEST 1985


>
> 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.



More information about the Comp.lang.c mailing list