comp.lang.ada
 help / color / mirror / Atom feed
From: wicklund@intellistor.com (Tom Wicklund)
Subject: Re: Ada Embedded Systems Efficiencies
Date: Tue, 2 Mar 93 22:36:18 GMT
Date: 1993-03-02T22:36:18+00:00	[thread overview]
Message-ID: <1993Mar2.223618.18978@intellistor.com> (raw)
In-Reply-To: 1993Feb24.212146.13157@saifr00.cfsat.honeywell.com

In <1993Feb24.212146.13157@saifr00.cfsat.honeywell.com> wisniews@saifr00.cfsat.honeywell.com (Joe Wisniewski) writes:

>Anyone who has worked on an Ada embedded system program knows (or should know) that if the
>system being built does not 'fit in the box', the system is not of much use to anyone. I
>am involved in a very large Ada project where there is currently much concern about whether
>or not we are going to 'fit in the box'. As a result as you can probably imagine, there
>is an increasing amount of attention being paid to addressing "micro-efficiencies". This
>attention takes on various forms:

Remember Jon Bentley's comments in his Programming Pearls columns in
CACM (and the books collecting those columns).

As a rule, most execution time is spent in a small amount of the code.
It's important to identify where the bottlenecks are and then decide
to optimize those, whether by violating encapsulating functions,
inlining code, using structures the compiler handles well, going to
assembly language, or restructuring the code.  Wholesale optimization
won't do much more than obscure things and ensure that non-time
critical code is blindingly fast.

I've worked for many years with disk drives.  It sometimes takes a
while to get people to realize that other than read and write
it doesn't matter how inefficient disk command implementations are
(within reason, of course).

There are also external factors to consider.  For example, in my work
with disk drives one must realize that timing is based on a disk
revolution.  It makes no sense to optimize code which will have to
wait a full disk revolution (12-17ms) before it can do anything.
Overlapping code with external factors (though it may sometimes
obscure the structure a bit) gives a lot of "free" optimization since
the time critical element is outside software control.




  parent reply	other threads:[~1993-03-02 22:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1993Feb24.212146.13157@saifr00.cfsat.honeywell.com>
1993-02-26 15:10 ` Ada Embedded Systems Efficiencies MILLS,JOHN M.
1993-03-02 20:10   ` Greg Franks
1993-03-02 22:36 ` Tom Wicklund [this message]
1993-03-03 14:39   ` Gerald Walls
1993-03-03 23:24     ` Mike Berman
1993-03-04  1:50       ` Dave Bashford
1993-03-05 21:21 agate!howland.reston.ans.net!zaphod.mps.ohio-state.edu!saimiri.primate.wi
  -- strict thread matches above, loose matches on Subject: below --
1993-02-26  5:59 Alex Blakemore
1993-02-25 20:36 enterpoop.mit.edu!spool.mu.edu!howland.reston.ans.net!paladin.american.ed
1993-02-25 19:58 Bob Kitzberger
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox