delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/26/03:32:05

From: Erik Max Francis <max AT alcyone DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019