CN106406857B - Memory multiplexing method and device for dynamic link library - Google Patents
Memory multiplexing method and device for dynamic link library Download PDFInfo
- Publication number
- CN106406857B CN106406857B CN201610760120.0A CN201610760120A CN106406857B CN 106406857 B CN106406857 B CN 106406857B CN 201610760120 A CN201610760120 A CN 201610760120A CN 106406857 B CN106406857 B CN 106406857B
- Authority
- CN
- China
- Prior art keywords
- function
- variable
- parameter data
- judged
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a memory multiplexing method of a dynamic link library, which comprises the following steps: acquiring parameter data, variables and functions in the dynamic link library through the acquiring function of the process; judging whether the parameter data, the variable and the function meet a standard data structure; if so, judging that the parameter data, the variable and the function can be reused; and transmitting the parameter data, the variable and the function to another auxiliary process through the process, dividing the parameter data, the variable and the function into a global type or a local type by the auxiliary process, declaring, and calling the main function for effective multiplexing. The memory multiplexing method of the dynamic link library can effectively multiplex most functions, variables and functions.
Description
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and an apparatus for multiplexing a memory of a dynamic link library.
Background
A dynamic link library file is a non-executable binary program file that allows programs to share code and other resources necessary to perform a particular task. Windows provides DLL files that contain many functions and resources that allow Windows-based programs to operate in a Windows environment. Generally stored in the directory of "C: \ Windows \ System32" of the computer.
In Windows, DLLs are most often files with a ". DLL" extension, but could also be ". ocx" or other extensions; often in Linux systems is a ". so" file. They provide code, data, or functions to programs running under the Windows operating system. The program can open, enable, query, disable, and close the drivers according to instructions in the DLL file.
However, many functions, variables and parameter data generated by the memory in the dynamic link library have no way to be multiplexed, and a multiplexing method for multiplexing the functions, variables and parameter data is urgently needed.
Disclosure of Invention
Based on the method, the invention provides a memory multiplexing method and device of a dynamic link library.
A method for multiplexing memory of a dynamically linked library, the method comprising:
acquiring parameter data, variables and functions in the dynamic link library through the acquiring function of the process;
judging whether the parameter data, the variable and the function meet a standard data structure;
if so, judging that the parameter data, the variable and the function can be reused;
and transmitting the parameter data, the variable and the function to another auxiliary process through the process, dividing the parameter data, the variable and the function into a global type or a local type by the auxiliary process, declaring, and calling the main function for effective multiplexing.
In one embodiment, the method further comprises:
judging whether the parameter data is a form parameter or a substantial parameter;
if judging the form parameter, discarding the form parameter;
if the parameters are judged to be the essential parameters, multiplexing the essential parameters.
In one embodiment, the method further comprises:
judging whether the variable is a global variable or a local variable;
if the global variable is judged, performing global statement;
if the local variable is judged to be the local variable, a local statement is made.
In one embodiment, the method further comprises:
if the function is judged to be the main function, the main function is demultiplexed;
and if the function is judged to be the standby function, discarding the standby function.
In one embodiment, the method further comprises:
and after judging that the parameter data, the variable and the function can be reused, writing a corresponding address into the dynamic link library to send the parameter data, the variable and the function, and collecting the parameter data, the variable and the function of another database corresponding to the address of the corresponding dynamic link library.
A memory multiplexing device for dynamically linked libraries, the device comprising:
the acquisition module is used for acquiring parameter data, variables and functions in the dynamic link library through the acquisition function of the process;
the first judgment module is used for judging whether the parameter data, the variable and the function meet the standard data structure;
if so, judging that the parameter data, the variable and the function can be reused;
and the transparent transmission module is used for transmitting the parameter data, the variable and the function to another auxiliary process through the process, dividing the parameter data, the variable and the function into a global type or a local type by the auxiliary process, declaring the parameter data, the variable and the function, and calling the main function for effective multiplexing.
In one embodiment, the apparatus further comprises:
the second judgment module is used for judging the parameter data to be a form parameter or a substantial parameter;
the discarding module is used for discarding the form parameters if the form parameters are judged;
and the multiplexing module is used for multiplexing the essential parameters if the essential parameters are judged.
In one embodiment, the apparatus further comprises:
the third judgment module is used for judging whether the variable is a global variable or a local variable;
if the global variable is judged, performing global statement;
if the local variable is judged to be the local variable, a local statement is made.
In one embodiment, the apparatus further comprises:
the fourth judging module is used for demultiplexing the main function if the function is judged to be the main function;
and if the function is judged to be the standby function, discarding the standby function.
In one embodiment, the apparatus further comprises:
and the sending module is used for writing corresponding addresses into the dynamic link library after judging that the parameter data, the variables and the functions can be reused so as to send the parameter data, the variables and the functions, and collecting the parameter data, the variables and the functions of another database corresponding to the addresses of the corresponding dynamic link library.
Has the advantages that:
the invention provides a memory multiplexing method of a dynamic link library, which comprises the following steps: acquiring parameter data, variables and functions in the dynamic link library through the acquiring function of the process; judging whether the parameter data, the variable and the function meet a standard data structure; if so, judging that the parameter data, the variable and the function can be reused; and transmitting the parameter data, the variable and the function to another auxiliary process through the process, dividing the parameter data, the variable and the function into a global type or a local type by the auxiliary process, declaring, and calling the main function for effective multiplexing. The memory multiplexing method of the dynamic link library can effectively multiplex most functions, variables and functions.
Drawings
In order to more clearly illustrate the operation principle and the technical scheme of the invention, the following briefly describes the operation principle and the attached drawings needed in the technology. It is obvious that the drawings in the following description are only some working examples of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a flowchart of a method for multiplexing memories of dynamic link data according to the present invention.
Fig. 2 is a block diagram of a memory multiplexing device for dynamically linking data according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the operation principle of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for multiplexing a memory of a dynamic link library includes:
s101: acquiring parameter data, variables and functions in the dynamic link library through the acquiring function of the process;
s102: judging whether the parameter data, the variable and the function meet a standard data structure;
s103: if so, judging that the parameter data, the variable and the function can be reused;
s104: and transmitting the parameter data, the variable and the function to another auxiliary process through the process, dividing the parameter data, the variable and the function into a global type or a local type by the auxiliary process, declaring, and calling the main function for effective multiplexing.
In one embodiment, the method further comprises:
judging whether the parameter data is a form parameter or a substantial parameter;
if judging the form parameter, discarding the form parameter;
if the parameters are judged to be the essential parameters, multiplexing the essential parameters.
In one embodiment, the method further comprises:
judging whether the variable is a global variable or a local variable;
if the global variable is judged, performing global statement;
if the local variable is judged to be the local variable, a local statement is made.
In one embodiment, the method further comprises:
if the function is judged to be the main function, the main function is demultiplexed;
and if the function is judged to be the standby function, discarding the standby function.
In one embodiment, the method further comprises:
and after judging that the parameter data, the variable and the function can be reused, writing a corresponding address into the dynamic link library to send the parameter data, the variable and the function, and collecting the parameter data, the variable and the function of another database corresponding to the address of the corresponding dynamic link library.
Referring to fig. 2, an apparatus for multiplexing memories of a dynamic link library, the apparatus comprising:
an obtaining module 100, configured to obtain parameter data, variables, and functions in a dynamic link library through a process obtaining function;
a first judging module 200, configured to judge whether the parameter data, the variable, and the function meet a standard data structure;
a result judgment module 300, configured to judge that the parameter data, the variable, and the function are reusable;
and a transparent transmission module 400, configured to transmit the parameter data, the variable, and the function to another auxiliary process through a process, where the auxiliary process divides the parameter data, the variable, and the function into a global type or a local type, makes a statement, and calls a main function to perform effective multiplexing.
In one embodiment, the apparatus further comprises:
the second judgment module is used for judging the parameter data to be a form parameter or a substantial parameter;
the discarding module is used for discarding the form parameters if the form parameters are judged;
and the multiplexing module is used for multiplexing the essential parameters if the essential parameters are judged.
In one embodiment, the apparatus further comprises:
the third judgment module is used for judging whether the variable is a global variable or a local variable;
if the global variable is judged, performing global statement;
if the local variable is judged to be the local variable, a local statement is made.
In one embodiment, the apparatus further comprises:
the fourth judging module is used for demultiplexing the main function if the function is judged to be the main function;
and if the function is judged to be the standby function, discarding the standby function.
In one embodiment, the apparatus further comprises:
and the sending module is used for writing corresponding addresses into the dynamic link library after judging that the parameter data, the variables and the functions can be reused so as to send the parameter data, the variables and the functions, and collecting the parameter data, the variables and the functions of another database corresponding to the addresses of the corresponding dynamic link library.
The invention provides a memory multiplexing method of a dynamic link library, which comprises the following steps: acquiring parameter data, variables and functions in the dynamic link library through the acquiring function of the process; judging whether the parameter data, the variable and the function meet a standard data structure; if so, judging that the parameter data, the variable and the function can be reused; and transmitting the parameter data, the variable and the function to another auxiliary process through the process, dividing the parameter data, the variable and the function into a global type or a local type by the auxiliary process, declaring, and calling the main function for effective multiplexing. The memory multiplexing method of the dynamic link library can effectively multiplex most functions, variables and functions.
The operation principle of the present invention is described in detail above, and the description of the operation principle is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (8)
1. A memory multiplexing method for a dynamic link library, the method comprising:
acquiring parameter data, variables and functions in the dynamic link library through the acquiring function of the process;
judging whether the parameter data, the variable and the function meet a standard data structure;
if so, judging that the parameter data, the variable and the function can be reused;
and transmitting the parameter data, the variable and the function to another auxiliary process through the process, dividing the parameter data, the variable and the function into a global type or a local type by the auxiliary process, declaring, and calling the main function for effective multiplexing.
2. The method of claim 1, further comprising:
judging whether the parameter data is a form parameter or a substantial parameter;
if judging the form parameter, discarding the form parameter;
if the parameters are judged to be the essential parameters, multiplexing the essential parameters.
3. The method of claim 1, further comprising:
judging whether the variable is a global variable or a local variable;
if the global variable is judged, performing global statement;
if the local variable is judged to be the local variable, a local statement is made.
4. The method of claim 1, further comprising:
if the function is judged to be the main function, the main function is demultiplexed;
and if the function is judged to be the standby function, discarding the standby function.
5. A memory multiplexing device for dynamically linked libraries, the device comprising:
the acquisition module is used for acquiring parameter data, variables and functions in the dynamic link library through the acquisition function of the process;
the first judgment module is used for judging whether the parameter data, the variable and the function meet the standard data structure;
a result generation module for judging the reusability of the parameter data, the variables and the functions;
and the transparent transmission module is used for transmitting the parameter data, the variable and the function to another auxiliary process through the process, dividing the parameter data, the variable and the function into a global type or a local type by the auxiliary process, declaring the parameter data, the variable and the function, and calling the main function for effective multiplexing.
6. The apparatus of claim 5, further comprising:
the second judgment module is used for judging the parameter data to be a form parameter or a substantial parameter;
the discarding module is used for discarding the form parameters if the form parameters are judged;
and the multiplexing module is used for multiplexing the essential parameters if the essential parameters are judged.
7. The apparatus of claim 5, further comprising: the third judgment module is used for judging whether the variable is a global variable or a local variable;
if the global variable is judged, performing global statement;
if the local variable is judged to be the local variable, a local statement is made.
8. The apparatus of claim 5, further comprising: the fourth judging module is used for demultiplexing the main function if the function is judged to be the main function; and if the function is judged to be the standby function, discarding the standby function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610760120.0A CN106406857B (en) | 2016-08-30 | 2016-08-30 | Memory multiplexing method and device for dynamic link library |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610760120.0A CN106406857B (en) | 2016-08-30 | 2016-08-30 | Memory multiplexing method and device for dynamic link library |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106406857A CN106406857A (en) | 2017-02-15 |
CN106406857B true CN106406857B (en) | 2021-04-13 |
Family
ID=58002715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610760120.0A Expired - Fee Related CN106406857B (en) | 2016-08-30 | 2016-08-30 | Memory multiplexing method and device for dynamic link library |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106406857B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6779187B1 (en) * | 1999-04-08 | 2004-08-17 | Novadigm, Inc. | Method and system for dynamic interception of function calls to dynamic link libraries into a windowed operating system |
CN101382953A (en) * | 2008-09-19 | 2009-03-11 | 中兴通讯股份有限公司 | Interface system for accessing file system in user space and file reading and writing method |
CN101714075A (en) * | 2009-12-17 | 2010-05-26 | 深圳市万兴软件有限公司 | Function calling method and device |
CN102033775A (en) * | 2009-09-28 | 2011-04-27 | 联想(北京)有限公司 | Sound management module and method for data processing equipment |
CN103077017A (en) * | 2012-12-27 | 2013-05-01 | 惠州市德赛西威汽车电子有限公司 | Embedded memory multiplexing method |
KR101341328B1 (en) * | 2012-12-18 | 2013-12-13 | 주식회사 잉카인터넷 | User definition api function creation |
CN104866297A (en) * | 2014-02-26 | 2015-08-26 | 华为技术有限公司 | Method and device for optimizing kernel function |
-
2016
- 2016-08-30 CN CN201610760120.0A patent/CN106406857B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6779187B1 (en) * | 1999-04-08 | 2004-08-17 | Novadigm, Inc. | Method and system for dynamic interception of function calls to dynamic link libraries into a windowed operating system |
CN101382953A (en) * | 2008-09-19 | 2009-03-11 | 中兴通讯股份有限公司 | Interface system for accessing file system in user space and file reading and writing method |
CN102033775A (en) * | 2009-09-28 | 2011-04-27 | 联想(北京)有限公司 | Sound management module and method for data processing equipment |
CN101714075A (en) * | 2009-12-17 | 2010-05-26 | 深圳市万兴软件有限公司 | Function calling method and device |
KR101341328B1 (en) * | 2012-12-18 | 2013-12-13 | 주식회사 잉카인터넷 | User definition api function creation |
CN103077017A (en) * | 2012-12-27 | 2013-05-01 | 惠州市德赛西威汽车电子有限公司 | Embedded memory multiplexing method |
CN104866297A (en) * | 2014-02-26 | 2015-08-26 | 华为技术有限公司 | Method and device for optimizing kernel function |
Non-Patent Citations (1)
Title |
---|
利用DLL技术实现代码复用的研究;包佃清;《连云港师范高等专科学校学报》;20050309;第1-3页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106406857A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106708899B (en) | Automatic point burying method and device | |
CN107896162B (en) | Deployment method and device of monitoring system, computer equipment and storage medium | |
US10430172B2 (en) | Re-configuration in cloud computing environments | |
CN110798490A (en) | Method and device for accessing third-party system based on data center and data center | |
CN112306503A (en) | Front-end resource packaging method and device, computer equipment and storage medium | |
CN111596927A (en) | Service deployment method and device and electronic equipment | |
CN113746879B (en) | Data processing method and device based on Virtual Private Cloud (VPC) | |
CN106406857B (en) | Memory multiplexing method and device for dynamic link library | |
CN107301097B (en) | Method and device for storing calling java object and reference address information of java object | |
CN112559565A (en) | Abnormity detection method, system and device | |
CN104572194B (en) | A kind of module loading method and apparatus | |
CN111078435A (en) | Service processing method and device and electronic equipment | |
US8935659B2 (en) | Method for generating software | |
CN105446732A (en) | Operation realization method, device and system of 64-bit program | |
CN105653948B (en) | Method and device for preventing malicious operation | |
CN110874214B (en) | Function calling method and device, electronic equipment and storage medium | |
CN113434152A (en) | Software development method, system and readable storage medium | |
CN110020268B (en) | Page returning method and device | |
CN110971642B (en) | Data processing method and device for cloud computing platform | |
CN107315951B (en) | Program installation package anti-interception method and device | |
CN114245890A (en) | Method and apparatus for providing function as a service platform | |
CN104965786A (en) | Debugging method for application program, debugging host and running host | |
CN110704026A (en) | Calling method and device of software development kit, terminal and readable medium | |
CN112748981B (en) | Processing method and device for software mirror image of virtual network function | |
CN111124923A (en) | Running state query method and device, server equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210413 Termination date: 20210830 |
|
CF01 | Termination of patent right due to non-payment of annual fee |