what is purpose of arm-none-eabi-gcc-ar, ranlib and nm

Thread Starter

ep.hobbyiest

Joined Aug 26, 2014
201
Hi
i installed the arm gcc toolchain and came across variant of gcc under bin folder of arm-gcc.
Following are the files.
I know the purpose of gcc executable only which is for compiling .c and .h files.
But i don't the use of other files.
arm-none-eabi-gcc
arm-none-eabi-gcc-ar
arm-none-eabi-gcc-ranlib
arm-none-eabi-gcc-6.3.1
arm-none-eabi-gcc-nm
 

mckenney

Joined Nov 10, 2018
125
arm-none-eabi-gcc-ar
arm-none-eabi-gcc-ranlib
arm-none-eabi-gcc-nm
"ar" and "ranlib" are used in managing libraries, and not-uncommonly appear in Makefile-s.

"nm" extracts external symbol names from an executable (.elf, e.g.). I don't know that it has a common use in Makefiles, but I've certainly used it plenty in my life.

Try googling for e.g. "man ranlib" for more details than you probably want.
 
Top