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

Cecil Ward cecil at cecilward.com
Wed Jul 15 12:51:15 UTC 2020


On Wednesday, 15 July 2020 at 08:17:06 UTC, kinke wrote:
> 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.

Thank you Kinke! I am indeed very much out of date. That’s such 
excellent news, very welcome.


More information about the Digitalmars-d mailing list