bvec, a FORTRAN77 code which demonstrates how signed integers can be stored as binary vectors, and arithmetic can be performed on them.
The computer code and data files made available on this web page are distributed under the GNU LGPL license.
bvec is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.