If I am working on a Unix machine, how could I know the size of the machine whether it is 64-bit or 32-bit machine?
If you're just looking to check the architecture of a machine you're on,
%> uname -a
from the command line usually contains an indication in the output.