Inter-compiler portability of asm between gdc and ldc2 (and dmd)

kinke noone at nowhere.com
Wed Jul 15 08:17:06 UTC 2020


On Wednesday, 15 July 2020 at 00:26:13 UTC, Cecil Ward wrote:
> I have a fair amount of code written in D which uses GDC’s 
> syntax for inline asm and currently it is therefore GDC-only. 
> It would like people to be able to build it alternatively using 
> LDC as well, and maybe even DMD.
>
> It’s a shame about the huge syntactic differences between the 
> asm syntax of GDC and LDC; both have their merits, but GDC 
> seems to me to be the most powerful, although I don’t pretend 
> to have studied LDC’s approach just glanced at it once very 
> briefly.

You're not up-to-date, LDC supports gdc/gcc-style inline asm 
since version 1.21.


More information about the Digitalmars-d mailing list