Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site gatech.CSNET
Path: utzoo!watmath!clyde!bonnie!akgua!gatech!arnold
From: arnold@gatech.CSNET (Arnold Robbins)
Newsgroups: net.lang.c
Subject: Re: more questions about efficient C code
Message-ID: <422@gatech.CSNET>
Date: Wed, 3-Jul-85 13:48:56 EDT
Article-I.D.: gatech.422
Posted: Wed Jul  3 13:48:56 1985
Date-Received: Thu, 4-Jul-85 04:07:32 EDT
References: <474@crystal.UUCP> <420@enmasse.UUCP> <2367@sun.uucp>
Distribution: net
Organization: Pr1mebusters!
Lines: 21

> >One is to write a simple test program and use the '-S'
> >flag of the compiler.  This will produce assembly code
> >that you can examine and see what intructions are being
> >generated for any particular expression.
> 
> Unfortunately, this option is not likely to show you the
> optimized code you would get from running the compiler with
> the -O flag.  To really see what's being generated, compile
> it, and then look at the object file with something like
> foo,24?ai
> in adb.

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.
-- 
Arnold Robbins
CSNET:	arnold@gatech	ARPA:	arnold%gatech.csnet@csnet-relay.arpa
UUCP:	{ akgua, allegra, hplabs, ihnp4, seismo, ut-sally }!gatech!arnold

Hello. You have reached the Coalition to Eliminate Answering Machines.
Unfortunately, no one can come to the phone right now....