This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How can I view the functions contained in a .Lib file?

How can I view the functions contained in a .Lib file?  

Does CCS have a utility similar to dumpbin.exe that can be used on Visual Studio Library files to show their contents?  I am using CCS v6.1.

Dana

  • DanaT said:
    Does CCS have a utility similar to dumpbin.exe that can be used on Visual Studio Library files to show their contents?

    I'm not familiar with dumpbin.  But I presume it is a tool you invoke on the command line.  If that presumption is correct, then the answer is yes.

    You don't say which TI CPU family you use.  That would tell me which compiler toolset you use.  Just for now, I presume you use the ARM toolset.

    The archiver utility can show you the contents of a library.  The command looks like ...

    % armar -t filename.lib

    If you don't use the ARM toolset, then use the somethingar or arsomething executable from the toolset you use.

    Thanks and regards,

    -George

  • You can also use the 'armnm' utility to show you the symbols that are defined or required by a library.

    % armnm filename.lib

  • I am using the c6748 DSP. Does the utility tool need to be downloaded or was it installed with my codegen tools?
    Dana
  • Then you want to use ar6x.  It is located in the same \bin directory as the rest of the compiler executables.

    Thanks and regards,

    -George

  • Thanks, I found it.
    When I use the ar6x -t option is displays the .obj files in the Library, but I was hoping it would display the function names in the Library that can be called. Any Suggestions?
  • DanaT said:
    Any Suggestions?

    An mentioned by Archaeologist above, nm6x can be used to determine the function names in a library file. Use the command:

    % nm6x -g filename.lib

    The functions in the library which can be called will be identified by a upper-case T in the second column of the nm6x output, where "T" means a global function.

    [The -g option to nm6x makes it only list global symbols]