Detailed inline behavior of dmd?

Iain Buclaw ibuclaw at ubuntu.com
Tue Aug 6 04:25:53 PDT 2013


On 6 August 2013 12:18, SteveGuo <steveguo at outlook.com> wrote:
> On Tuesday, 6 August 2013 at 11:07:54 UTC, Peter Alexander wrote:
>>
>> 1. You have to add -inline
>>
>> 2. Don't know. I'm guessing it depends on the function complexity, among
>> other things.
>>
>> 3. No, it cannot possibly inline everything due to recursive functions,
>> and indirect function calls. It would also be a terrible idea due to code
>> bloat.
>
>
> Thanks for replying:)
> Ok, then is there a -forceinline option like other compiler?
>

I wonder what other compiler you are referring to that has a
-forceinline switch... seems odd to have one.


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the Digitalmars-d mailing list