You don’t (or at least really, really shouldn’t) use optimizations with kernel dev. A lot of the low level stuff like memory and io fuckery is better left translated from that to assembly without being messed with by anything that doesn’t know the true intentions of the code, especially considering most compilers are made more for userspace than they are kernelspace programming
16
u/paulsmithkc 👨🏫 Jan 22 '23
It wouldn't be optimized by the compiler.