4 ms·
C is closer to the hardware in the sense that with any given C code, I can pretty much predict what the generated assembly will look like. You cannot say the sa
by kccqzy 7y ago
C is closer to the hardware in the sense that with any given C code, I can pretty much predict what the generated assembly will look like. You cannot say the same for, say, Python.
- Koshkin 7y ago> pretty much Not really... Not only the generated assembly code heavily depends on the compiler (LLVM, gcc, Intel, MSVC...) and the optimization settings, you cannot be completely sure what the machine code generated by the assembler even looks like these days.
- someguydave 7y agoand you also won't be able to predict the timings of complex code as various "uncore" and on-core resource limitations bite