more questions about efficient C code
fletcher at im4u.UUCP
fletcher at im4u.UUCP
Wed Jul 3 08:24:34 AEST 1985
In article <2367 at sun.uucp> jfarrell at sun.UUCP (Jerry Farrell) writes:
>>
>>One is to write a simple test program and use the '-S'
>>flag of the compiler.
>
>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.
Adb to see if your code is optimized? Now that's
real masochism. Just do 'cc -O -S foo.c'. This fails
if you do 'cc -OS foo.c', which is probably what you
were refering to. This is with 4.2's compiler.
--
Fletcher Mattox, fletcher at ut-sally.ARPA, {ihnp4,seismo,ctvax}!ut-sally!fletcher
More information about the Comp.lang.c
mailing list