The difference between. So,. Ko, and. A under Linux

Source: Internet
Author: User

The difference and function of various documents:

1, for. so files

The. So file is a dynamic link library for the user layer that is used for dynamic linking of the user layer, and the kernel-state code is also not directly accessible.

2. For. ko files

Obj-m = *.O
Obj-y = *.O
The difference between the two above is that the former will generate a KO file, the latter is only the code compiled into the kernel, does not generate KO files.

. ko files are kernel-state dynamic link libraries that are used for dynamic linking of kernel states and can be used for inter-core invocation of modules. The code of the user state cannot call the kernel-state code directly, but it can communicate in other ways.

3, for. a Files

. A files are static libraries used when using static links.

4. For. o Files

The. o file is the target file, compiled and generated, and. A files are generated by the. o File package.

The difference between. So,. Ko, and. A under Linux

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.