News for hackers. Stuff that matters.
Re:Nim Community Survey 2019 Results by simias on Monday February 24, 2020 @06:30AM (#22403199)
Inline assembly is a compiler extension and not portable.

Beyond that, sure you can do whatever you want in C if you're willing to mess with assembly and non-portable memory tricks but at this point you're better off writing your own native backend. The whole point of generating C instead of machine code is to leverage the existing compiler infrastructure to support a vast number of architectures and generate efficient code. If you just dump inline assembly in a C function or rely on opaque memory shenanigans the C compiler won't be able to meaningfully optimize your code and it probably won't be portable.

There are no comments on this comment yet.