Re:C and C++ Prioritize Performance over Correctness
by defrost on Saturday August 19, 2023 @06:36AM
(#37187361)
The more important detail is which "standard C" recognises inline asm as a common as dirt C extension.
Page 514 (of version n1256) of the ISO C Standard
Moving target, to be, sure, but it's been there for 20+ years now.
Annex J.5.10 The asm keyword
to quote a stack overflow answer (that sounds a lot like an answer commonly given back in the day on Usenet and #C IRC channels)
informative, not normative, so an implementation need not provide inline assembly, and if it does it's not prescribed in which form. But it's a widespread extension, though not portable since compilers do indeed implement it differently.
Page 514 (of version n1256) of the ISO C Standard
Moving target, to be, sure, but it's been there for 20+ years now.
Annex J.5.10 The asm keyword
to quote a stack overflow answer (that sounds a lot like an answer commonly given back in the day on Usenet and #C IRC channels)
https://www.open-std.org/JTC1/SC22/WG14/https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf