[Info-vax] Hex display order option for DUMP ?
John Reagan
xyzzy1959 at gmail.com
Fri Jul 23 16:49:35 EDT 2021
On Friday, July 23, 2021 at 4:12:10 PM UTC-4, Bill Gunshannon wrote:
> On 7/23/21 2:08 PM, Simon Clubley wrote:
> > On 2021-07-23, gah4 <ga... at u.washington.edu> wrote:
> >>
> >> On little endian machines, od -x will give bytes to you in the order
> >>
> >> 1 0 3 2 5 4 7 6 9 8 11 10 13 12 15 14
> >>
> >> which isn't much easier to read than VMS order. It doesn't make
> >> bytes easy, or 32 bit words (float), or larger values (double).
> >>
> >> I can get used to any of them, but I think I get used to the VMS
> >> ordering faster.
> >>
> >
> > For me, the one I go to on Linux is "hexdump -C".
> >
> > Of all the hexdump tools I have tried, the output from that command
> > is the most readable for me.
> >
> > Simon.
> >
> So port it to VMS and make it your contribution to the Open Source
> on VMS collections.
>
> bill
I downloaded the hexdump.c/hexdump.h from the github link I posted earlier
Don't bother with the silly makefile.
$ cc/noopt/debug/define=(HEXDUMP_MAIN,HAVE_ERR=0) hexdump
int luaopen_hexdump() {
^
%CC-W-MISSINGRETURN, Non-void function "luaopen_hexdump" does not contain a return statement.
at line number 1887 in file WORK20:[JREAGAN]HEXDUMP.C;2
$ link hexdump
%ILINK-W-COMPWARN, compilation warnings
module: HEXDUMP
file: WORK20:[JREAGAN]HEXDUMP.OBJ;6
$ hexdump :== $work20:[jreagan]hexdump.exe
$ hexdump "-C" login.com
00000000 24 20 66 61 63 67 65 6e 20 3a 3d 3d 20 40 78 76 |$ facgen :== @xv|
00000010 6d 73 24 73 61 6c 65 6d 5f 72 65 73 64 24 3a 5b |ms$salem_resd$:[|
00000020 62 75 69 6c 64 2e 73 79 73 62 6c 64 63 6f 6d 5d |build.sysbldcom]|
00000030 66 61 63 67 65 6e 24 21 20 54 68 65 20 6c 69 6e |facgen$! The lin|
00000040 6b 65 72 2c 20 61 6e 61 6c 79 7a 65 2c 20 6c 69 |ker, analyze, li|
00000050 62 72 61 72 2c 20 6c 62 72 2c 20 65 74 63 2e 20 |brar, lbr, etc. |
00000060 66 61 63 69 6c 69 74 69 65 73 20 61 6c 6c 20 68 |facilities all h|
00000070 61 76 65 20 61 20 73 69 6d 69 6c 61 72 24 21 20 |ave a similar$! |
00000080 73 63 68 65 6d 65 20 74 6f 20 70 61 73 73 20 69 |scheme to pass i|
00000090 6e 20 63 6f 6d 70 69 6c 65 20 61 6e 64 20 6c 69 |n compile and li|
000000a0 6e 6b 65 72 20 6f 70 74 69 6f 6e 73 2e 20 20 6c |nker options. l|
000000b0 69 62 72 61 72 2f 6c 62 72 20 69 73 20 61 20 62 |ibrar/lbr is a b|
000000c0 69 74 24 21 20 64 69 66 66 65 72 65 6e 74 20 69 |it$! different i|
000000d0 6e 20 74 68 61 74 20 69 74 20 64 6f 65 73 6e 27 |n that it doesn'|
000000e0 74 20 77 61 6e 74 20 74 68 65 20 6c 65 61 64 69 |t want the leadi|
000000f0 6e 67 20 73 6c 61 73 68 20 66 6f 72 20 74 68 65 |ng slash for the|
00000100 20 6c 69 6e 6b 65 72 24 21 20 6f 70 74 69 6f 6e | linker$! option|
More information about the Info-vax
mailing list