Re: Unix History: Why does hexdump default to word alignment?

2011-11-30 Thread Valery Reznic
First computer Unix run on was PDP. On PDP instructions and also short/int are word aligned, so may be it's a reason. Valery > > From: Elazar Leibovich >To: linux-il >Sent: Thursday, December 1, 2011 9:16 AM >Subject: Unix History: Why does hexdump default t

Unix History: Why does hexdump default to word alignment?

2011-11-30 Thread Elazar Leibovich
The default behaviour of hexdump is to align data word-wide. For instance printf '\xFF\xFF\x01' | hexdump 000 0001 003 This makes little sense to me. In C, structs are not necessarily aligned to words, and it doesn't seems useful to view about any data format for which yo