Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site umcp-cs.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!seismo!umcp-cs!chris From: chris@umcp-cs.UUCP (Chris Torek) Newsgroups: net.lang.c Subject: Re: more questions about efficient C code Message-ID: <618@umcp-cs.UUCP> Date: Mon, 1-Jul-85 21:58:37 EDT Article-I.D.: umcp-cs.618 Posted: Mon Jul 1 21:58:37 1985 Date-Received: Fri, 5-Jul-85 04:48:03 EDT References: <474@crystal.UUCP> <420@enmasse.UUCP> <2367@sun.uucp> Distribution: net Organization: U of Maryland, Computer Science Dept., College Park, MD Lines: 17 >>[...] 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@umcp-cs ARPA: chris@maryland