From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: optimising Date: Tue, 22 Jul 1997 22:17:16 -0700 Organization: Alcyone Systems Lines: 23 Message-ID: <33D593DC.16992348@alcyone.com> References: <01bc9660$b58d62a0$c4fa41ce AT drkwatr> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk DrkWatr wrote: > I was wondering if there is a program that will > optimisize your c source, and still let you view it as c source? Thus > allowing me to learn better programming habits. I know of no such beast. Optimization is generally done at the compiler level, not the source level. Furthermore, such a beast would probably not be all _that_ much use. Optimization at the source level is highly dependent on the compiler and platform (for instance, the sizes of the fundamental types) that you're using. Optimization is better left to the compiler, which 1. is generating the code in the first place, and 2. has a far better idea of the environment than any generalized program can. -- Erik Max Francis, &tSftDotIotE / email / max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "Love is not love which alters / when it alternation finds." / William Shakespeare, _Sonnets_, 116