mips-linux-gnu-gcc

Source: Internet
Author: User


(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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.