inlining or not inlining...

spir denis.spir at gmail.com
Wed Feb 9 09:26:05 PST 2011


On 02/09/2011 03:53 PM, Trass3r wrote:
>> This howto would start by describing most common and/or most critical criteria for the compiler to /not/ inline a given func.
>
> Well if I read the code correctly:
> - inline assembler
> - variadic functions (string s, ...)
> - synchronized
> - imported functions
> - functions with closure vars
> - virtual functions that aren't final
> - functions with out, ref or static array parameters
> - functions with more than 250 elementary expressions

Very interesting.

What do you think about the compiler telling "Function f in module m not 
inlined"? Guess it would (just) need a flag 'inliningRequested' set by the 
parser in whatever structure represents a func.

Denis
-- 
_________________
vita es estrany
spir.wikidot.com



More information about the Digitalmars-d mailing list