3 ms·
I code C pretty extensively and am pretty involved in the community. I rarely hear inline asm (itself, not the invocation) referred to as C; in fact it's pretty
by deaddodo 3y ago
I code C pretty extensively and am pretty involved in the community. I rarely hear inline asm (itself, not the invocation) referred to as C; in fact it's pretty explicitly made clear by the general community that you should clearly delineate and cleanly separate asm code and mark that logic as machine specific.
The __asm__ inliner is referred to as C, sure; but not the code itself. That would be like calling FFI'd C in Rust, "rust code".
In addition, it 100% is in the standard beginning with "ANSI C" (C89):
> C89/C90 standard (ISO/IEC 9899:1990):
> * G.5.10 The asm keyword
https://en.cppreference.com/w/c/language/asm https://en.cppreference.com/w/c/language/asm
It's just an optional extension for compilers versus a core language feature.
- pjmlp 3y agoLets say that we don't hang on the same circles, actually it even comes up in some threads on HN. Yeah, that was the point of not being a core language feature, I should have expressed better.