Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


> 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.


and you also won't be able to predict the timings of complex code as various "uncore" and on-core resource limitations bite




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: