digitalmars.D.learn - inlining functions
- Jan Hanselaer (9/9) May 01 2007 Do I understand it well that there's no function inlining at all when yo...
Do I understand it well that there's no function inlining at all when you compile without the -inline parameter? And that the compiler chooses which functions to inline when you compile with the -inline parameter? And if so, anyone knows what the exact criteria are? I read something like no inlining when there's a loop in the function, but are there more criteria? Greetz Jan
May 01 2007
Jan Hanselaer wrote:Do I understand it well that there's no function inlining at all when you compile without the -inline parameter?Most likely yes.And that the compiler chooses which functions to inline when you compile with the -inline parameter?Yes.And if so, anyone knows what the exact criteria are? I read something like no inlining when there's a loop in the function, but are there more criteria?Another one is that functions containing inline asm aren't inlined.
May 01 2007
Deewiant wrote:Jan Hanselaer wrote:It would be great if -v listed the functions inlined.Do I understand it well that there's no function inlining at all when you compile without the -inline parameter?Most likely yes.And that the compiler chooses which functions to inline when you compile with the -inline parameter?Yes.And if so, anyone knows what the exact criteria are? I read something like no inlining when there's a loop in the function, but are there more criteria?Another one is that functions containing inline asm aren't inlined.
May 01 2007