How to check whether a system is big endian or little endian?
In Nim,
echo cpuEndian
It is exported from the system module.