What does 'inline' mean?

Stefan Koch uplink.coder at googlemail.com
Mon Jun 8 12:17:10 UTC 2020


On Monday, 8 June 2020 at 11:53:11 UTC, Dukc wrote:
> On Monday, 8 June 2020 at 08:47:36 UTC, Stefan Koch wrote:
>> Is that a valid concern?
>> Will _any_ project out there break because of that?
>
> It's easy to imagine. If one has a very simple mathematical 
> function taking, say int and float and returning a float, and 
> that function is called in a very hot loop, performance can 
> drop noticeably if inlining suddently fails. Especially if the 
> mathematical function calls another function instead of using 
> the compiler primitives directly.

I didn't ask about not inlinng.
I asked about the address of a function changing.
 From object file to object file


More information about the Digitalmars-d mailing list