|automatic inlining? firstname.lastname@example.org (1996-02-23)|
|Re: automatic inlining? email@example.com (Jim Mattson) (1996-02-23)|
|Re: automatic inlining? firstname.lastname@example.org (1996-02-24)|
|Re: automatic inlining? snovack@justright.ICS.UCI.EDU (Steven Novack) (1996-02-24)|
|Re: automatic inlining? email@example.com (1996-03-08)|
|From:||firstname.lastname@example.org (Brian V. McGroarty)|
|Date:||24 Feb 1996 23:29:03 -0500|
> 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 -- email@example.com
phone/fax (847) 439-7714
Return to the
Search the comp.compilers archives again.