Solved

Inlining failed, large function growth limit reached

Posted on 2010-09-14
3
967 Views
Last Modified: 2012-05-10
Hey guys,

Our build is getting a warning about inlining failing due to a large function growth limit being reached (gcc compiler).  The code causing the warning is a auto generated framework for our industry (so it's probably not going to be changed).  Anyway, i was hoping that someone could provide insight on the implications of this warning even if we can't change the code...

(1) what specificly does the warning mean?
(2) can I assume that the result of the inlining failing is simply that the function is defined as a standard function rather than inlined (i.e. placed throughout the code in full code form)?

Thanks in advance,

-w00te
0
Comment
Question by:w00te
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Infinity08 earned 500 total points
ID: 33672486
large-function-growth is used to limit the code increase due to inlining. When the limit is reached, the warning you get is emitted.

It's just a warning though, so you can ignore it. But maybe you should consider splitting the code up into smaller functions, and only inline small frequently used functions.
0
 
LVL 12

Author Comment

by:w00te
ID: 33672602
Thanks for the info :) Like I said, its an existing industry framework so I can't really touch it.  Its comforting to know nothing too bad is happening besides some lost efficiency though, haha.  It had me worried.

-w00te
0
 
LVL 53

Expert Comment

by:Infinity08
ID: 33672643
Nothing bad is happening, no. But it does indicate an issue with the code - namely that functions are too big, which might degrade performance. But if that's something you cannot touch, then you'll have to live with the warnings I guess ;)

It's fun maintaining big old code bases isn't it ? Especially if they throw in a lot of generated code.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
source code to scan multiple images 6 91
How to build c program using make in mingw environment? 9 65
Error C2678: binary '!=': no operator found... 4 49
max float value 3 41
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question