Documentation for coff_header_data.pl

NAME

coff_header_data.pl

SYNOPSIS

Shows the contents of a .out / .obj / .lib's file header COFF info. Useful for checking that e.g. xyz.lib is indeed a 64 lib or is indeed big-endian or...

A sample output might be: -

    ===================================
    COFF File header data for hello.out
    ===================================
    target : 55L phase3
    endianNess : big
    targetFamily : 55x family
    isExecutable : true

USAGE

coff_header_data <filename.xml>

Example : - from a DOS prompt: -

    [>] <ccstudiodir>\dosrun.bat
    [>] OFD -x -o=app.xml app.out
    [>] perl coff_header_data.pl app.xml

... OR ...

    [>] OFD -x <out file> | perl coff_header_data.pl

OFD stands for the object display utility, such as ofd6x for C6000 tools, or ofd55 for C5500 tools.

OFD OPTIONS

Recent releases of OFD support options for filtering the XML output down to what is strictly of interest. The best options to use in combination with this script are:

  -x --xml_indent=0 --obj_display=none,header

Filtering the XML in this way reduces the amount of data processed by this script, thus making it run faster.

DESCRIPTION

Shows the contents of a .out or .obj or .lib's file header COFF info. Useful for checking that e.g. xyz.lib is indeed a 64 lib or is indeed big-endian or...

OFD stands for Object File Display utility. Examples include ofd6x for C6000 and ofd55 for C5500.

This script was written using Perl version 5.8.3. It may not work with earlier revisions of Perl.

 Documentation for coff_header_data.pl