Detailed inline behavior of dmd?
David
d at dav1d.de
Tue Aug 6 04:30:28 PDT 2013
Am 06.08.2013 13:01, schrieb SteveGuo:
> D supports inline functions, But I want to know the details.
>
> 1. Is inline the default behavior? Or I have to add a compiler switch
> -inline?
> 2. The depth of inline.
> 3. If I add the switch -inline when compiling, it will inline everything
> no matter how complex the function is?
My experience with -inline.
Without: runs fine
With: segfaults
Handle DMD with care, if you want performance, use LDC or GDC, both do a
better job without introducing segfaults
More information about the Digitalmars-d
mailing list