[comp.lang.ada] optimizers

segedy@gsg.UUCP (Catherine Segedy) (01/19/88)

Hi there.  Due to the discussion of optimizers which is currently going on
in this group, I'd like to put in my 2 cents worth.  My own opinion is that
there are a few reasons to optimize:
	size vs speed (one way is faster, one takes up more room)
	removing debugging information when you are done debugging (ie strip)
	compiler slow-down (when the optimized code might take the compiler
				a relatively long time to execute, you might
				get it only when requested)
the functionality of the code produced should be the same!  The very word
'optimize' conotates thoughts of 'make better' 'make more efficient', not
things like 'change what happens'

I have had plenty of problems with compilers (although not ada ones) which
have done some really flakey things on the grounds of 'optimization'.  In
fact there are certain optimizations which some compilers do automatically
which I think should only be done if asked for -- for instance, removing code
that is not called, and removing un-referenced variables.  Maybe they should
be flagged, but not removed.
(sorry, I think I'm getting a little 'preachy' here.)
					cathy segedy, GSG
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
decvax!gsg!segedy      harvard!gsg!segedy
my opinions are my own, in my opinion
I am not a liberated woman because I've always been free