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.

Compiler/DRA745: How to figure out the TI CGT version that was used to generate the binary

Part Number: DRA745

Tool/software: TI C/C++ Compiler

Hi,

For Linux development, to determine the compiler version that a particular binary/library is compiled with I use the command 

strings -a <binary/library> | grep GCC

What is the equivalent procedure for binaries compiled with TI CGT ARM tool chain.

I'm trying to make sure that all the binaries are compiled with the same tool chain.

Regards
Karthik

  • A command similar to this will work ...

    $ armofd file.out | grep Version
        Format:              ELF Version 1
        Linker Version:      16.9.1
        Format Version:  'A'
                 Tag_Producer_VMajor   17      (Producer Major Version + 1)
                 Tag_Producer_VMinor   10      (Producer Minor Version + 1)
                 Tag_Producer_VPatch   2       (Producer Patch Version + 1)
    

    armofd is the Object File Display utility from the TI ARM compiler tools.  It is documented in the ARM assembly tools manual.

    Line 3 shows the version of the linker used is 16.9.1 .  In theory, other parts of the tool chain (compiler, assembler, etc) can be a different version.  In practice, though, that never happens.  You can replace file.out (an executable) with an object file or library.  The output is similar, though not identical.

    Thanks and regards,

    -George

  • Thank you George, that works!

    Regards
    Karthik