From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: * X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_50,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!europa.asd.contel.com!gatech!mcnc!uvaarpa!vger.nsu.edu!g_harrison From: g_harrison@vger.nsu.edu (George C. Harrison, Norfolk State University) Newsgroups: comp.lang.ada Subject: Re: Use pragma INLINE or not? Message-ID: <1094.285f999c@vger.nsu.edu> Date: 19 Jun 91 21:51:24 GMT References: <1991Jun18.171459.11744@software.org> List-Id: 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 ---------------------------------