MPLAB® XC16/XC32 Compiler- How do you determine what files are inside a library (.a) file?

For the MPLAB® XC16 or XC32 C compilers, how can I determine what files are inside a library (.a) file?

In the compiler bin folder, there is a utility called an 'archiver' for generating library files (xc16-ar.exe or xc32-ar.exe). This utility can also be used for listing the contents of a .a library file also by using the -t option.

Example:
On a command-line run xc32-ar -t myLibraryFile.a. This will print out the contents of myLibraryFile.a

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.