Documentation for lib_versions.pl

NAME

lib_versions.pl

SYNOPSIS

Prints out version of code generation tools used to compile each library.

A sample output might be: -

Library: c:\chan.l64

Built by: TMS320C6x C/C++ Codegen Unix v5.1.0 Copyright (c) 1996-2004 Texas Instruments Incorporated

USAGE

lib_versions [options] <list of libraries or xml files>

Example : - from a DOS prompt: -

    [>] <ccstudiodir>\dosrun.bat
    [>] perl lib_versions.pl rts6000.l*

.. OR ..

    [>] <ccstudiodir>\dosrun.bat
    [>] ofd6x -xg -o=rts6000.lib.xml rts6000.lib
    [>] perl lib_versions.pl -x rts6000.lib.xml

OPTIONS

 -h: show usage
 -o: show version info on a per object file basis
 -x: do not run ofd internally. Arguments are a list of xml files from ofd utility
 --cg_xml_version : Print out the version of the cg_xml package in use

DEPENDENCIES

The script will only work on library files built with code generation tools >= v5.0 for c6000, v3.0 for C55, v4.0 for C54

The script could take awhile to run depending on the size of the libraries. It takes time to process the xml output from the ofd utility, which typically can get as large as tens of megabytes.

DESCRIPTION

For each library listed, the script would print out the version of the codegen tools used to build it. By default, it prints out the version used for the first object file it finds in the library file.

Use the -o switch to get version information on a per object file basis in case the library is a combination of C and assembly code, and the assembly code modules do not have any Dwarf information. The compiler RTS library is such library. You may also use -o for the rare case where different object files were compiled using different code generation tools.

Specifying the -x switch allows users to pass in ofd-generated xml files to the script instead of the library files. This is generally faster since ofd does not need to be run by the script.

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

 Documentation for lib_versions.pl