Inlining?
Tim Prince
timothyprince@sbcglobal.net
Wed Aug 30 13:19:00 GMT 2006
Philippe Schaffnit wrote:
> Hi!
>
> Thanks a lot for your reply!
>
> Sorry for not supplying an example! I am more like asking in a general
> way... I have set "-finline-functions" and
> "-finline-functions-called-once" but I have to admit that I overlooked
> "-fkeep-inline-functions": I'll try to add it!
>
In a general way, the compiler must observe some target-dependent limits
on the complexity of a function which is feasible for inlining.
gfortran doesn't fall into the trap of certain commercial compilers,
where the experts who work for the compiler vendor recommend splitting
source so as to prevent the compiler getting stuck on inter-procedural
analysis. I trust you aren't running one of those scripts which use
fsplit, or a more modern alternative, then put the pieces back together
with a pre-link step such as ld -o bigobject -r littleobjects. If you
are speaking in a general way, such common practices aren't excluded.
More information about the Fortran
mailing list