Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1exp 10/6/83; site ihnss.UUCP Path: utzoo!linus!philabs!cmcl2!floyd!vax135!ariel!houti!hogpc!drux3!ihnp4!ihnss!warren From: warren@ihnss.UUCP Newsgroups: net.lang.c,btl.unix Subject: Interesting memo on efficiency of C code Message-ID: <1743@ihnss.UUCP> Date: Mon, 17-Oct-83 12:06:34 EDT Article-I.D.: ihnss.1743 Posted: Mon Oct 17 12:06:34 1983 Date-Received: Tue, 18-Oct-83 21:00:14 EDT Organization: AT&T Bell Labs, Naperville, Il Lines: 25 I ran accross a CMU technical report on the efficiency of C coding on a vax 11/780. The report discussed timings for different language constructs and various optimization techniques (like the use of register variables, loop re-structuring, pointers versus arrays, etc.) The timings were done on a 4.1BSD system, however I suspect that they are generally applicable. There are several interresting examples of simple programs and optimizations that people may apply, and of the results. For anyone interested, it is: Efficiency Considerations for C Programs on a Vax 11/780 Cristopher Van Wyk (BTL), Jon L. Bentley (CMU), Peter J. Weinberger (BTL). CMU-CS-82-134 No, I won't make copies, but it's at least available from the btl technical reports service for you btl'ers. -- Warren Montgomery ihnss!warren IH x2494