clangs inline assembly sucks, compared to gcc.
-
-
Correction: clangs inline assembly is absolute garbage. always.
1 reply 0 retweets 4 likesShow this thread -
Replying to @ArvidGerstmann
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.
2 replies 0 retweets 0 likes -
Replying to @oe1cxw
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.
1 reply 0 retweets 1 like
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.
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.