Realistically, the best language for this is C, because everything else is too heavyweight, requires too much of a runtime, or simply isn't available most places.
It used to be an issue that non-free UNIXes did not include a C-compiler by default, and then C would really not help. I am not sure if that is the case anymore.