add options to save big/little-endian with 32/64-bit pointers