Re: automatic inlining? (Brian V. McGroarty)
24 Feb 1996 23:29:03 -0500

          From comp.compilers

Related articles
automatic inlining? (1996-02-23)
Re: automatic inlining? (Jim Mattson) (1996-02-23)
Re: automatic inlining? (1996-02-24)
Re: automatic inlining? snovack@justright.ICS.UCI.EDU (Steven Novack) (1996-02-24)
Re: automatic inlining? (1996-03-08)
| List of all articles for this month |

From: (Brian V. McGroarty)
Newsgroups: comp.compilers
Date: 24 Feb 1996 23:29:03 -0500
Organization: Internet Squire
References: 96-02-285
Keywords: optimize

> Do any of the current compilers do the following?
> If a function is called from only one place does the compiler in-line
> the code.

I've had several flavors of GNU C++ do this for me, although the
inline optimization takes place exclusively within a module. It is
worth noting that if your compiler does this, it is likely beneficial
to declare functions which are only used within the current file as
static to avoid inlining the function while generating another copy
for calls from external modules.

Brian Valters McGroarty --
phone/fax (847) 439-7714

Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.