Tornado Reference : Tornado Utilities

hex

NAME

hex - convert an a.out format object file into Motorola hex records

SYNOPSIS

hex [-a adrs] [-l] [-v] [-p PC] [-s SP] file

DESCRIPTION

This program generates a Motorola hex format (S-record) file from an a.out format object module. Normally, the entry address in the object module is used as the starting address of the output module. However, if the -a flag is used, then adrs is used as the starting address. Normally S1 records are generated for addresses less than 64K; S2 records are generated for addresses greater than 64K and less the 16M; and S3 records are generated for addresses greater than 16M.

OPTIONS

-l
generate only S2 records.

-a adrs
use adrs as the entry address, rather than the address in the object module.

-v
output vector information at address 0.

-p PC
write PC as the program counter (PC) in the vector (meaningless without -v). The default PC is the entry point, if you specify -v without -p.

-s SP
write SP as the stack pointer (SP) in the vector (meaningless without -v). The default SP is the entry point, if you specify -v without -s.

SEE ALSO

hex