DIP56 Provide pragma to control function inlining
Dicebot
public at dicebot.lv
Sun Feb 23 14:03:39 PST 2014
On Sunday, 23 February 2014 at 21:53:43 UTC, Walter Bright wrote:
> On 2/23/2014 1:04 PM, Dmitry Olshansky wrote:
>> That programmer is instantly aware that it can't be done due
>> to some reason.
>> Keep in mind that code changes with time and running
>> profiler/disassembler on
>> every tiny change to make sure the stuff is still inlined is
>> highly
>> counter-productive.
>
> I'm aware of that, but once you add the:
>
> version(BadCompiler) { } else pragma(inline, true);
Once one resorts to force_inline and similar micro-optimisations
he usually sticks to single "good" compiler as code gen needs to
be re-profiled for each compiler anyway.
More information about the Digitalmars-d
mailing list