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.

Archiver .a and .lib difference

Hi,

I notice that there are two types of library files: .a and .lib.

Both are described in ARM compiler/assembler as libraries.

As libraries are eventually linked by linker, I do not see obvious difference between the two such as between dynamic linked DLL and static LIB. What is the key difference between .a and .lib?

 

Cheers,

  • This description applies only to the libraries found in the /lib directory of the TI ARM compiler installation.  That said, the conventions established there are commonly used elsewhere.

    A .lib file is a library of object files.  Such a library is created with the command armar.  That command is described in the chapter titled Archiver Description in the ARM assembly language tools manual.  A .a file is an index library.  It is created with the command armlibinfo.  This command is described in the sub-chapter titled Library Information Archiver Description.

    Thanks and regards,

    -George