clangs inline assembly sucks, compared to gcc.
Aren't they using the same "assembler template" language extension? Or do you refer to the assembler language itself? Clang docs claim that most of those incompatibilities are because they refuse to be compatible with GAS bugs.
-
-
Yes, technically. But some of the constraints of GCC aren't supported or badly implemented. Since GCC 6 I can access flags directly, without the use of 'set', by having a '=
@cc' constraint. See line 22 here: https://godbolt.org/g/PkHpDnThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Another thing is, memory constraints are always spilled on the stack. GCC can correctly keep them in registers and never touch the stack. That's implemented by the LLVM guys because "it's easier". Or plain unimplemented features, like return values in rdx:rax.
-
I personally don't care much for the x86 specific stuff (other than that I like my programs to run fast :), so I wasn't even aware of features like "=
@ccz" to access ZF. Don't need sth like that on RISC-V. :) But spilling stuff unnecessarily on the stack is certainly bad. Ouch.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.