Solved

Inlining failed, large function growth limit reached

Posted on 2010-09-14
3
937 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
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 goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now