Unix History: Why does hexdump default to word alignment?

Unix History: Why does hexdump default to word alignment?

Omer Zak w1 at zak.co.il
Thu Dec 1 13:48:36 IST 2011


On Thu, 2011-12-01 at 12:51 +0200, Oleg Goldshmidt wrote:
> IIRC, all x86 processors
> provided BCD-related instructions (conversions to and from), but I
> think even then it was slower than straightforward binary arithmetic.
> It was slow because the machine instructions were for single bytes
> only, but not for wider objects. I do not remember if it was in any
> way related to 8087 math co-processors.

The 8086 had several instructions for adjusting results of arithmetic
operations to conform to BCD values.
The 8087 had the FBLD and FBSTP for loading and storing BCD values.

--- Omer


-- 
My Commodore 64 is suffering from slowness and insufficiency of memory;
and its display device is grievously short of pixels.  Can anyone help?
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html




More information about the Linux-il mailing list