Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site enmasse.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!enmasse!mhs From: mhs@enmasse.UUCP (Mike Schloss) Newsgroups: net.lang.c Subject: Re: more questions about efficient C code Message-ID: <420@enmasse.UUCP> Date: Thu, 27-Jun-85 16:25:10 EDT Article-I.D.: enmasse.420 Posted: Thu Jun 27 16:25:10 1985 Date-Received: Sat, 29-Jun-85 00:25:19 EDT References: <474@crystal.UUCP> Distribution: net Organization: Enmasse Computer Corp., Acton, Mass. Lines: 19 > I am currently modifying C code, written by someone else, > that is incredibly terse. It's paramount that the code > be fast, so I presume the code is terse for speed. I'm > now curious about a few things: > > . > . > . Sorry but it all depends on your particular compiler implementation and the machine you are running on. There are two ways to find the answers to your questions. 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. If you dont want to get your hands dirty with assembler then write your test program to run a couple 100k times though each expression and time it.