Inlining a "pure" ASM function

Johannes Pfau nospam at example.com
Fri Mar 1 07:01:46 PST 2013


Am Thu, 28 Feb 2013 14:33:15 -0800 (PST)
schrieb Brad Roberts <braddr at puremagic.com>:

> On Thu, 28 Feb 2013, Simen Kj?r?s wrote:
> 
> > On Thu, 28 Feb 2013 16:22:49 +0100, D-ratiseur
> > <ThisAdressDoesntExist at nowhere.fr> wrote:
> > 
> > > Hello, Is it possible for an ASM function to be inlined in D?
> > 
> > Nope.
> 
> To be a little more accurate:  it's possible in the technical sense.
> No D compiler today does it automatically.  There's no way with DMD
> to force it, but might be with GDC and/or LDC.
> 
> The lack of inlining in a number of cases that seem like they should
> is a quality of implementation issue and not a language definition
> issue.

IIRC gdc dropped support for dmd-style inline assembly. For gcc style
inline assembly inlining should just work.


More information about the Digitalmars-d-learn mailing list