3 ms·
None, but that'a not what computers are. C assumes that in a few places, e.g. variadic functions, and those are the worst parts of the language.
by alexvitkov 1y ago
None, but that'a not what computers are. C assumes that in a few places, e.g. variadic functions, and those are the worst parts of the language.
- grandempire 1y ago> but that'a not what computers are Which language more accurately represents hardware then?
- pjmlp 1y agoAssembly language from the hardware vendor.
- oguz-ismail 1y agoisn't it translated to microcode before being executed?
- pjmlp 1y agoDepends on the hardware design.
- acka 1y ago[flagged]
- sugrado 1y agobro just quoted a chatbot
- alexvitkov 1y agoC++ for one - it has atomics with well defined memory barriers, and guarentees for what happens around them. The real answer is obviously Assembly - pick a random instruction from any random modern CPU and I'd wager there's a 95% chance it's something you can't express in C at all. If the goal is to model hardware (it's not), it's doing a terrible job.
- grandempire 1y agoC++ better represents the machine?
- uecker 1y agoC has the same atomics and concurrency model as C++.