comp.lang.ada
 help / color / mirror / Atom feed
* Use pragma INLINE or not?
@ 1991-06-18 17:14 Fred Stluka
  1991-06-19  8:58 ` Orville R. Weyrich
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Fred Stluka @ 1991-06-18 17:14 UTC (permalink / raw)


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.

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

What do you think?

Please POST votes accompanied by supporting arguments.
Or MAIL simple YES/NO votes to me.  I will summarize.

Thanks,
--Fred
-- 
Fred Stluka                              Internet: stluka@software.org
Software Productivity Consortium         UUNET:    ...!uunet!software!stluka
2214 Rock Hill Rd, Herndon VA 22070 USA  Phone:    (703)742-7236

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Use pragma INLINE or not?
@ 1991-06-20 13:07 Bevin Brett
  0 siblings, 0 replies; 12+ messages in thread
From: Bevin Brett @ 1991-06-20 13:07 UTC (permalink / raw)



... 
>>There seem to be 2 schools of thought:
...

Pragma INLINE gives a compiler permission to establish a dependency on
a library level compilation unit BODY in order to do the inlining.  This
permission is not granted without the pragma.

So the advice is.  Don't both if the body is in the same library level unit
as the call, otherwise use if if necessary to give permission for extra
dependencies.

/Bevin

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1991-06-28 17:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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