Inline Functions

Tomas Lindquist Olsen tomas.l.olsen at gmail.com
Wed Feb 25 00:14:16 PST 2009


On Wed, Feb 25, 2009 at 8:42 AM, Walter Bright
<newshound1 at digitalmars.com> wrote:
> Mason Green (Zzzzrrr) wrote:
>>
>> When I remove -inline there doesn't seem to
>> be much of a difference in execution speed.
>
> Try running obj2asm to see if the functions you want inlined are actually
> inlined or not.
>

perhaps a verbose mode could be added in dmd that prints the pretty
printed declaration when a function is inlined. then it would be a
simple grep to make sure.

dmd -vi foo.d | grep 'foo\.inc'

telling people to inspect the obj2asm output seems to be popular, but
it's hardly user friendly.



More information about the Digitalmars-d mailing list