Word Size


[Home] Home > Retro Systems > Digital > OSF/1 > Tricks > Word Size

Finding the word size

The getconf command can be used to obtain the word size of a system in userland.

$ getconf WORD_BIT
32
$

This can be misleading, as it doesn't necessarily report the architecture's true word size. The following can clear it up.

$ getconf LONG_BIT
64
$

Copyright © 2010-2024 Paul Ward.
License Information