srec_cmp(1)

NAME
srec_cmp - compare two EPROM load files for equality

SYNOPSIS
srec_cmp [ option... ] filename...
srec_cmp -Help
srec_cmp -VERSion

DESCRIPTION
The srec_cmp program is used to compare two EPROM load files for equality. This comparison is performed irrespective of the load order of the data in each of the files.

OPTIONS
The following options are understood:

-Help
    Provide some help with using the srec_cmp program.

-IGnore_Checksums

-VERSion
    Print the version of the srec_cmp program being executed.

-Verbose
    This option may be used to obtain more information about how and where the two files differ. Please note that this takes longer, and the output can be voluminous.

All other options will produce a diagnostic error.

EXAMPLE
A common use for the srec_cmp command is to verify that a particular signature is present in the code. In this example, the signature is in a file called“signature[rq], and the EPROM image is in a file called “image[rq]. We assume they are both Motorola S-Record format, although this will work for all formats:
    srec_cmp signature image -crop -within signature
The signature need not be at the start of memory, nor need it be one single contiguous piece of memory. In the above example, the portions of the image which have the same address range as the signature are compared with the signature.