more questions about efficient C code

Chris Torek chris at umcp-cs.UUCP
Tue Jul 2 11:58:37 AEST 1985


>>[...] it all depends on your particular compiler
>>implementation [...] use the '-S' flag of the compiler
>>[to] produce assembly code that you can examine [...].

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

That's not necessary; -O and -S work just fine together, at
least under 4BSD (including Sun 4.2).
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	seismo!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.lang.c mailing list