alexvitkov 5 days 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.

1
grandempire 5 days ago

> but that'a not what computers are

Which language more accurately represents hardware then?

alexvitkov 5 days ago

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

uecker 5 days ago

C has the same atomics and concurrency model as C++.

grandempire 5 days ago

C++ better represents the machine?

pjmlp 5 days ago

Assembly language from the hardware vendor.

oguz-ismail 5 days ago

isn't it translated to microcode before being executed?

pjmlp 5 days ago

Depends on the hardware design.