Assembly Integration into Compiler
Timon Gehr
timon.gehr at gmx.ch
Thu Jul 7 13:07:44 PDT 2011
Walter Bright wrote:
> On 7/7/2011 12:14 PM, Andrej Mitrovic wrote:
>> There's nothing stopping you from using an external assembler? You can
>> hook up NASM and D code pretty easily.
> ...
> 6. It really hurts my brain to have gas swap the operands.
>
> 7. gas (gnu assembler) doesn't follow the Intel syntax so you have to do a
> mental translation from the Intel datasheets to the gas source. gas doesn't even
> use the same instruction names. Bah.
> [snip]
asm(".intel_syntax noprefix\n"); + Compiler Switch iirc.
This fixes syntax, but all the other parts of gas remain kludgy.
I fully agree with all the other points. Having a neat inline assembler can be
extremely handy.
Cheers,
-Timon
More information about the Digitalmars-d
mailing list