This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inlining heuristics for C++
- To: dewar at gnat dot com
- Subject: Re: Inlining heuristics for C++
- From: Joe Buck <jbuck at synopsys dot COM>
- Date: Mon, 9 Jul 2001 20:22:50 -0700 (PDT)
- Cc: dan at cgsoftware dot com, fjh at cs dot mu dot oz dot au, gcc at gcc dot gnu dot org
> The style in Ada is for people to use pragma Inline to specify what should
> be inlined, and programmers generally specify only very small functions for
> inlining.
Same in C++ (with the addition that functions whose definitions appear in
the class declaration rather than outside it are implicitly inline). We
might want to address the matter by looking at libstdc++ to see if
excessively large functions are declared inline.