2 ms·
Yes, but now your code is no longer C or C++ standards compliant as it relies on compiler-specific attributes, if that matters to the programmer. Unfortunately
by ranger_danger 1y ago
Yes, but now your code is no longer C or C++ standards compliant as it relies on compiler-specific attributes, if that matters to the programmer.
Unfortunately, even the Linux kernel is no longer C because they use GCC compiler extensions (and are currently discussing adding MS ones too).
- 1718627440 1y agoA kernel will make use of asm, and can't abstract over the machine, so it will always be unportable and relying on compiler extensions.
- ranger_danger 1y agoThe Linux kernel did not always rely on compiler extensions though...
- 1718627440 1y agoThe kernel once did not need asm? That's a compiler extension, although a popular one.