1. Static Compilation: when compiling an executable file, the compiler extracts the part of the corresponding dynamic link library (. So or. ilb) that needs to be used and links it to the executable file,Make the executable file do not need to depend on the dynamic link library during running.
2. Dynamic Compilation: a dynamic link library must be attached to the
1, a program compiled from the source file to build the executable file steps:Precompiled--compile-and-link(1) Pre-compilation, that is preprocessing, mainly processing in the source code files with "#" to start the pre-compilation instructions, such as macro expansion, processing conditional compilation instructions, processing # # # directives.(2) The process of compiling is a series of lexical analysis, grammatical analysis, semantic analysis and optimization of the pre-processed files into c
Library cache structure/library The structure of cache object-dump Libraryhandle
Library Cache Structure
The main function of Library cache is to store user-submitted SQL statements, SQL statement-related parse tree (parse tree is the representation of all objects involved in SQL statements)---> Shared SQL area (shar
Previously said, if the amount of data to be stored in a database is relatively small, but one table stores more data, such as log table, it is necessary to consider the table storage; But what if the overall storage capacity of a database is relatively large? At this point, we need to consider the library, is to build multiple databases to save data. Here, for example, even if the survey is not many, but the number of people involved in the survey is
Reprinted from: http://www.cnblogs.com/dawen/archive/2010/09/22/1833031.html
Terms:
Dynamic Link Library
Static Link Library
Dynamic Link
Static Link
The dynamic link library and static Link Library represent the files of the library, while the dynamic link and
Linux dynamic library and static Library Loading BasicsStatic LibraryIn Linux, use the AR command to create a static library file. The following is a command option:D ----- delete an object from the specified static library fileM ----- move the file to the specified static library
In easy language, you can use the "Easy-to-write (exek)" function to develop easy-to-language support libraries. Not only are there no functional limitations, but you can also play with the "Flowers, even the "Flowers" that others cannot play.
I. Do not use command Classification
Commands in the supported libraries are generally divided into several categories. For example, commands in the core library of easy language are divided into "process
I. IntroductionFor more information, seeOn Compiling and linking gcc/g ++ in UNIX systems.
Generally, the links to the function library are completed during the compilation period (compile time. All related object files and libraries are linked to form an executable file ). When the program is running, it has nothing to do with the function library, because all the required functions have been copied to the
IntroductionLet's introduce a new Java framework-jna that accesses native code.The JNA (Java Native Access) framework is an open-source Java framework that is developed by Sun and is built on the basis of classic JNI.JNA Project Address: https://jna.dev.java.net/very powerful, easy to use, functionally similar to. Net of P/invoke.A terrible jni.We know that using JNI calls. dll/.so Sharing class libraries is very, very cumbersome and painful.If you have an existing. dll/.so file, if you use the
how to invoke a third party library file (. So) in the Android NDK1. Create a prebuilt subdirectory under the Project/jni directory (directory name customizable).2. Put the third party. So in the prebuilt and create the ANDROID.MK, as follows:Local_path: = $ (call My-dir)Include $ (clear_vars)Local_module: = xxxLocal_src_files: = libxxx.soInclude $ (prebuilt_shared_library)3. Add in Project/jni/android.mkLocal_shared_libraries: = xxx4. In the final pa
Static link of vs2008 lib
I. Static and Dynamic Link Libraries
Both static and dynamic link libraries are shared.CodeIf you use a static Link Library, all the commands in lib are directly included in the final generated EXE file, whether you wish or not. However, if a DLL is used, the DLL does not need to be included in the final EXE file. During execution of the EXE file, the DLL file can be dynamically referenced and detached.Another difference
A dynamic library based on dynamic libraryLibfun.so relies on dynamic library libtest.so (the function intnothing () in the libfun.so Dynamic library calls the libtest.so () function in intmytest), And Main.exe called the libfun.so function int nothing ().Here are two ways to work:Common ways of 1>g++-shared-fpic-o libtest.so Test.cppg++-shared-fpic-o libfun.so f
Link Library and address irrelevant code, Link Library address
[Static connection and dynamic link library]
[Static link]---> Static library: Link to the source program and load it to the virtual memory[Dynamic Link]---> Shared Library:For each database, the operating system allocates a specific virtual memory address.
Both static and dynamic libraries share code. Static link library (LIB ):Complete all assembly work before the program execution and generate an executable target file (exe file ). Static databases have two features:
The executable file generated after the Link contains the code of all functions to be called, so it occupies a large disk space.
If multiple (calling the same library function)
function library is generally divided into static library and dynamic library two kinds.Static libraries:Refers to the compilation of links, the code of the library files are all added to the executable file, so the resulting file is larger, but at run time also no longer need the
Original link: http://www.orlion.ga/781/I. Links to multi-objective filesSuppose there are two files: stack.c:/* STACK.C */char stack[512];int top = -1;void push (char c) {stack[++top] = C;} Char pop (void) {return stack[top--];} int Is_empty (void) {return top = =-1;}The above file implements the stack. MAIN.C:/* MAIN.C */#include This file is used by the stack, compiled: gcc main.c stack.c-o Main, can also be compiled in step:Gcc-c main.cgcc-c STACK.CGCC main.o stack.o-o MainUsing the NM comma
The production and usage of static library and dynamic library (shared library) under Linux
The function library supported by Linux operating system is divided into static library and dynamic library, and dynamic
Preface
Dear reader,
Welcome to "go beyond the C ++ standard library: boost library Guide".
This book is for you if you are interested in generic programming, library design, and C ++ standard libraries. This book is intended for medium and high level C ++ programmers. Some basic concepts of C ++ are hardly involved in this book. As the title implies, this book f
Create a static library of. AThe first step is to create a new project.Generally use the name of the project name, such as I use Fmdb to create a static library, my project name is named Fmdb, created. A static library is LIBFMDB.A.Create a new project using a static library template. pngThe created project. pngThe sec
Existing main.cpp, Function.cpp, Function.h
Both the static library file and the dynamic library file must be generated based on the. o file.
1. Static library file (LIBXXX.A):
The prefix must be lib and the suffix must be. A.
(1) Generate:
Ar-r Libmyfunction.a FUNCTION.O
A static library file will be generated for FUN
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.