System programming in D (Was: The God Language)

Manu turkeyman at gmail.com
Thu Jan 5 14:01:52 PST 2012


On 5 January 2012 23:50, Iain Buclaw <ibuclaw at ubuntu.com> wrote:

> >   * inline asm supporting pseudo regs - As an extension of using the
> vector
> > hardware, I'll need inline asm, and inline assembly without pseudo regs
> is
> > pretty useless... it's mandatory that the compiler shedule the register
> > allocation otherwise inline asm will most likely be an un-optimisation.
> If D
> > had pseudo regs in its inline assembler, it would make it REALLY
> attractive
> > for embedded systems programmers.
> >     In lieu of that, I need to use opcode intrinsics instead, which I
> > believe GDC exposes, but again, I'm done with C and versioning
> (#ifdef-ing)
> > every compiler I intend to use. Why not standardise these things? At
> least
> > put the intrinsics in the standard lib...
> >
>
> This is only possible using GDC extended asm - which is really GCC asm
> but encapsulated in {} instead of ();
>

... shit.
I fear this is a VERY serious problem that needs discussion and resolution.
Now we have 2 competing standards of asm syntax in D...
We're exactly in the same place as VisualC and GCC now. Epic fail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120106/ccd90496/attachment.html>


More information about the Digitalmars-d mailing list