comp.lang.ada
 help / color / mirror / Atom feed
From: g_harrison@vger.nsu.edu (George C. Harrison, Norfolk State University)
Subject: Re: Use pragma INLINE or not?
Date: 19 Jun 91 21:51:24 GMT	[thread overview]
Message-ID: <1094.285f999c@vger.nsu.edu> (raw)
In-Reply-To: 1991Jun18.171459.11744@software.org

In article <1991Jun18.171459.11744@software.org>, stluka@neptune.software.org (Fred Stluka) writes:
> About the use of pragma INLINE...
> 
> There seem to be 2 schools of thought:
> 
>      1)  Don't use it.  Smart compilers will automatically
>          inline the most appropriate routines.

YES!!

However, in the LRM (6.3.2) it is written "the pragma INLINE is used to 
indicate that inline expansion of the subprogram body is  

                        D E S I R E D

                       (emphasis, mine)

for every call of each of the named subprograms...."


Is this action of pragma INLINE required?  

In paragraph 3 it is written "....an implementation is free to follow or to
ignore the recommendation express by the pragma." 

So... why have it at all?


> Thanks,
> --Fred
> -- 
> Fred Stluka                              Internet: stluka@software.org

George...

-- George C. Harrison (not the lead guitar in the Beatles) ---------------
----- Professor of Computer Science                -----------------------
----- Norfolk State University                     -----------------------
----- 2401 Corprew Avenue, Norfolk, Virginia 23504 -----------------------
----- INTERNET:  g_harrison@vger.nsu.edu ---------------------------------

  parent reply	other threads:[~1991-06-19 21:51 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 [this message]
1991-06-19 23:44 ` Jim Showalter
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