(1) What kind of library is-LZ-LRT-LM-LC?
Libz
Librt
Libm
libc
Then Google's
Compression library (Z)
Live library (Real time)
Math Library (Math)
Standard C library (c Lib)
You can go into/lib,/usr/lib and see most of the libxxxx on your machine.
Google, you can know what libraries they are
(2) The role of-lpthread
Link a multi-threaded library. This option is required for functions in the Pthread.h header file that are used in the program.
Thanks a lot.
int a=7;
Main ()
{
}
Compile with the command GCC Test.c-lpthread, generate the executable file a.out. What does the system do when you enter./a.out in the shell? Still fork () +execve ()? Compile-time Plus
And without-lpthread, what are the specific differences in implementation?
>> still Fork () +execve ()?
Right
>> compile-time plus and no-lpthread, in the implementation of what exactly is the difference?
The difference is the ELF parser, not the kernel. When the kernel Execve returns to the user space, the interpreter is executed, and if there is a link to the Libpthread Library, the Interpreter program loads
This library, and then back to A.out to execute
mips-linux-gnu-gcc