The linker links specified object files to create one executable file. Invoking the compiler with one of the invocation commands automatically calls the linker unless you specify one of the following compiler options: -E, -P, -c, -S, -qsyntaxonly or -#.
xlc myfile.c -o myfileIf you use the -qmkshrobj option to create a shared library, the default name of the shared object created is shr.o. You can use the -o option to rename the file and give it a .so suffix.
You can invoke the linker explicitly with the ld command. However, the compiler invocation commands set several linker options, and link some standard files into the executable output by default. In most cases, it is better to use one of the compiler invocation commands to link your object files. For a complete list of options available for linking, see Linking.