comp.lang.ada
 help / color / mirror / Atom feed
From: jls@netcom.COM (Jim Showalter)
Subject: Re: Use pragma INLINE or not?
Date: 19 Jun 91 23:44:29 GMT	[thread overview]
Message-ID: <1991Jun19.234429.20796@netcom.COM> (raw)
In-Reply-To: 1991Jun18.171459.11744@software.org

>There seem to be 2 schools of thought:

>     1)  Don't use it.  Smart compilers will automatically
>         inline the most appropriate routines.

>     2)  Use it.  Compilers aren't that smart yet.

>What do you think?

[Tried to e-mail this, but it bounced...]

Let the compiler inline when it can figure it out. Use a profiler
to find bottlenecks when tuning the code, and manually inline the
offenders. DON'T inline everything to "be sure"--this has a bunch
of bad effects, and is completely unecessary (10% of your code uses
90% of your CPU).
-- 
*** LIMITLESS SOFTWARE, Inc: Jim Showalter, jls@netcom.com, (408) 243-0630 ****
*Proven solutions to software problems. Consulting and training on all aspects*
*of software development. Management/process/methodology. Architecture/design/*
*reuse. Quality/productivity. Risk reduction. EFFECTIVE OO usage. Ada/C++.    *

  parent reply	other threads:[~1991-06-19 23:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-06-18 17:14 Use pragma INLINE or not? Fred Stluka
1991-06-19  8:58 ` Orville R. Weyrich
1991-06-19 15:15 ` Robert I. Eachus
1991-06-19 15:57 ` Brian Hanafee
1991-06-19 21:51 ` George C. Harrison, Norfolk State University
1991-06-19 23:44 ` Jim Showalter [this message]
1991-06-27 16:13   ` Robert Firth
1991-06-27 21:00     ` Michael Feldman
1991-06-28 12:39       ` Kenneth B. Hawks
1991-06-28 17:56         ` Lance E Murray
1991-06-28 15:09       ` Use pragma INLINE or not? (SUMMARY) Fred Stluka
  -- strict thread matches above, loose matches on Subject: below --
1991-06-20 13:07 Use pragma INLINE or not? Bevin Brett
replies disabled

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