by JoshTriplett · 6y ago · 0 comments
Thank you for helping to validate that decision; this is the kind of feedback we needed.
(And note that you can still choose to use AT&T syntax, it just isn't the default.)
That said, this is a good decision because C compilers seem to be the major holdouts at this point—binutils has had .intel_syntax for a long time now, it’s just not supported inline.
Microsoft's assembler uses Intel syntax, and their inline assembly also uses Intel syntax.
Their inline assembly is much less explicit about inputs, outputs, and clobbers, and "just" has you mix C symbols and labels with assembly instructions, which I imagine is a pain to get right.
However Microsoft has de-emphasized inline assembly and doesn't allow it on amd64 or ARM. For things that need specific instructions you need to either use intrinsics or put assembly in a different object file.
That's just sad :(
add.s.ne
ldm.ia.cc
(in both orders, for those cases with two suffixes)