4 ms·
If you read closer, my point was that anything Zig can do, can be done in C due to it's ubiquitous ability to bypass the compiler and move straight to assembler
by P5fRxh5kUvp2th 4y ago
If you read closer, my point was that anything Zig can do, can be done in C due to it's ubiquitous ability to bypass the compiler and move straight to assembler.
I can't think of a major C compiler that does not allow for this, can you? The only thing I could imagine coming close is something like compiling to a very specific target such as GPU shaders, but even that's a bad example considering shaders have been standardized.
- pjmlp 4y agoMSVC, inline Assembly is only available on x86 mode, everywhere else requires compiler intrisics or MASM.
- P5fRxh5kUvp2th 4y agoJust checked, apparently that's right for MSVC. My point still remains but I take your point about its limitations. My post was more a caveat on the original point anyways, I wouldn't expect most people to drop down to assembly except in very specific circumstances.