Re: pragma(inline)

2015-12-30 Thread Daniel Kozak via Digitalmars-d-learn
V Wed, 30 Dec 2015 03:24:45 +
Ilya via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
napsáno:

> Hi,
> 
> Does `pragma(inline, true)` force DMD compiler to inline function 
> when `-inline` was _not_ defined?
> 
> I am failing to get a good disassembled code with obj2asm/otool 
> :-(
> 
> Best, Ilya

No



Re: pragma(inline)

2015-12-30 Thread Daniel Kozak via Digitalmars-d-learn
V Wed, 30 Dec 2015 03:24:45 +
Ilya via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
napsáno:

> Hi,
> 
> Does `pragma(inline, true)` force DMD compiler to inline function 
> when `-inline` was _not_ defined?
> 
> I am failing to get a good disassembled code with obj2asm/otool 
> :-(
> 
> Best, Ilya

pragma(inline), pragma(inline, xxx) is use only when is used with
-inline. Without -inline switch there is probably no inlining at all.



pragma(inline)

2015-12-29 Thread Ilya via Digitalmars-d-learn

Hi,

Does `pragma(inline, true)` force DMD compiler to inline function 
when `-inline` was _not_ defined?


I am failing to get a good disassembled code with obj2asm/otool 
:-(


Best, Ilya


new pragma(inline) syntax

2015-06-13 Thread Ilya Yaroshenko via Digitalmars-d-learn

Are `foo` and `bar` always inlined?

struct S
{
  pragma(inline, true):

  void foo(T)(T t) {}
  void bar(T)(T t) {}
}


Re: new pragma(inline) syntax

2015-06-13 Thread Ilya Yaroshenko via Digitalmars-d-learn

On Saturday, 13 June 2015 at 19:13:20 UTC, Ilya Yaroshenko wrote:

Are `foo` and `bar` always inlined?

struct S
{
  pragma(inline, true):

  void foo(T)(T t) {}
  void bar(T)(T t) {}
}


I am confused becuase they are templates.