Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Inlining failed, large function growth limit reached

Posted on 2010-09-14
3
Medium Priority
?
1,055 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Infinity08 earned 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall‚Ķ
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

618 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