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

Guillaume Piolat first.name at gmail.com
Wed Jul 15 11:00:11 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. I 
> would like people to be able to build it alternatively using 
> LDC as well, and maybe even DMD.
>

If it's x86 assembly, perhaps consider moving it to 
intel-intrinsics. The same code should build on all 3 D compilers.
- It may also be faster than assembly when using LDC (don't know 
about GDC)
- and it will also build slower than assembly


More information about the Digitalmars-d mailing list