CN106406857A - Memory reusing method and device for dynamic link library - Google Patents

Memory reusing method and device for dynamic link library Download PDF

Info

Publication number
CN106406857A
CN106406857A CN201610760120.0A CN201610760120A CN106406857A CN 106406857 A CN106406857 A CN 106406857A CN 201610760120 A CN201610760120 A CN 201610760120A CN 106406857 A CN106406857 A CN 106406857A
Authority
CN
China
Prior art keywords
function
variable
supplemental characteristic
dynamic link
link library
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.)
Granted
Application number
CN201610760120.0A
Other languages
Chinese (zh)
Other versions
CN106406857B (en
Inventor
蔡昭权
胡辉
陈伽
胡松
蔡映雪
陈军
黄翰
黄思博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou University
Original Assignee
Huizhou University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huizhou University filed Critical Huizhou University
Priority to CN201610760120.0A priority Critical patent/CN106406857B/en
Publication of CN106406857A publication Critical patent/CN106406857A/en
Application granted granted Critical
Publication of CN106406857B publication Critical patent/CN106406857B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a memory reusing method and a memory reusing device for a dynamic link library. The method comprises the steps of acquiring parameter data, a variable and a function in the dynamic link library via an acquisition function in a process; judging whether the parameter data, the variable and the function are data structures up to standard; if yes, judging whether the parameter data, the variable and the function can be reused; performing passthrough of the parameter data, the variable and the function to another auxiliary process, allowing the auxiliary process to divide the parameter data, the variable and the function into a global type or a local type and making a statement, and calling the main function to perform effective reuse. According to the memory reusing method for the dynamic link library, the most parameter data, variables and functions can be effectively reused.

Description

A kind of internal memory multiplexing method of dynamic link library and device
Technical field
The present invention relates to data processing field, the internal memory multiplexing method of more particularly, to a kind of dynamic link library and device.
Background technology
Dynamic link library file, is a kind of not executable binary program file, and it allows procedure sharing execution special Code necessary to task and other resources.The journey allowing based on Windows is contained in the dll file that Windows provides Many functions and resource that sequence operates under Windows environment.Typically it is stored in " the C of computer:\Windows\ System32 is " under catalogue.
In Windows, DLL is in most cases the file with " .dll " extension name, it is also possible to being " .ocx " Or other extension name;It is often the file of " .so " in linux system.They are to running under Windows operating system Program provides code, data or function.Program can according to the instruction unpack in DLL file, enable, inquire about, disable and close Driver.
However, a lot of functions, variable and supplemental characteristic that the internal memory in dynamic link library produces do not have method carrying out again With being badly in need of a kind of method of multiplexing and being multiplexed above-mentioned function, variable and supplemental characteristic.
Content of the invention
Based on this, the invention provides a kind of internal memory multiplexing method of dynamic link library and device.
A kind of internal memory multiplexing method of dynamic link library, methods described includes:
By the supplemental characteristic obtaining in function acquisition dynamic link library of process, variable and function;
Judge the whether standard compliant data structure of described supplemental characteristic, variable and function;
If so, described supplemental characteristic, variable and function reusable are then judged;
Described supplemental characteristic, variable and function are passed through another assisted process by process, will be described by described assisted process Supplemental characteristic, variable and function are divided into overall type or local type, and are stated, and call principal function to be effectively multiplexed.
Wherein in an embodiment, methods described also includes:
Judge described supplemental characteristic for formal parameter or essential parameter;
If being judged as formal parameter, described formal parameter is abandoned;
If being judged as essential parameter, described essential parameter is multiplexed.
Wherein in an embodiment, methods described also includes:
Judge described variable for global variable or local variable;
If being judged as global variable, carry out overall situation statement;
If being judged as local variable, carrying out local and stating.
Wherein in an embodiment, methods described also includes:
If judging, described function, for principal function, principal function is demultiplexed;
If judging, described function is standby function, will be abandoned for function.
Wherein in an embodiment, methods described also includes:
After judging described supplemental characteristic, variable and function reusable, then write corresponding address in dynamic link library, with Described supplemental characteristic, variable and function are transmitted, and another data of address collection of corresponding corresponding dynamic link library The supplemental characteristic in storehouse, variable and function.
A kind of internal memory multiplexer of dynamic link library, described device includes:
Acquisition module, for by the supplemental characteristic obtaining in function acquisition dynamic link library of process, variable and function;
First judge module, for judging the whether standard compliant data structure of described supplemental characteristic, variable and function;
If so, described supplemental characteristic, variable and function reusable are then judged;
Transparent transmission module, for described supplemental characteristic, variable and function are passed through another assisted process by process, by described auxiliary Help process that described supplemental characteristic, variable and function are divided into overall type or local type, and stated, and call principal function to enter Row is effectively multiplexed.
Wherein in an embodiment, described device also includes:
Second judge module, for judging described supplemental characteristic for formal parameter or essential parameter;
Discard module, if for being judged as formal parameter, described formal parameter is abandoned;
Multiplexing module, if for being judged as essential parameter, described essential parameter is multiplexed.
Wherein in an embodiment, described device also includes:
3rd judge module, for judging described variable for global variable or local variable;
If being judged as global variable, carry out overall situation statement;
If being judged as local variable, carrying out local and stating.
Wherein in an embodiment, described device also includes:
4th judge module, if for judging that described function, for principal function, principal function is demultiplexed;
If judging, described function is standby function, will be abandoned for function.
Wherein in an embodiment, described device also includes:
Sending module, for after judging described supplemental characteristic, variable and function reusable, then writing in dynamic link library Corresponding address, described supplemental characteristic, variable and function are transmitted, and the address of corresponding corresponding dynamic link library is received Collect supplemental characteristic, variable and the function of another data base.
Beneficial effect:
The invention provides a kind of internal memory multiplexing method of dynamic link library, methods described includes:By the acquisition function of process Supplemental characteristic in acquisition dynamic link library, variable and function;Judge described supplemental characteristic, variable and function whether conformance with standard Data structure;If so, described supplemental characteristic, variable and function reusable are then judged;By described supplemental characteristic, variable and function Another assisted process is passed through by process, described supplemental characteristic, variable and function are divided into by the overall situation by described assisted process Type or local type, and stated, and call principal function to be effectively multiplexed.The internal memory multiplexing method of this dynamic link library can be by Majority function, variable and function are effectively multiplexed.
Brief description
In order to be illustrated more clearly that the technical scheme of operation logic of the present invention and use, below will be to operation logic and use Technology in the accompanying drawing of required use be briefly described.It is clear that drawings in the following description are only the present invention's Some run example, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of method flow diagram of the internal memory multiplexing method of dynamic link evidence of the present invention.
Fig. 2 is a kind of device block diagram of the internal memory multiplexer of dynamic link evidence of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in operation logic of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, It is fully described by it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of not making creative work all its His embodiment, broadly falls into the scope of protection of the invention.
Refer to Fig. 1, a kind of internal memory multiplexing method of dynamic link library, methods described includes:
S101:By the supplemental characteristic obtaining in function acquisition dynamic link library of process, variable and function;
S102:Judge the whether standard compliant data structure of described supplemental characteristic, variable and function;
S103:If so, described supplemental characteristic, variable and function reusable are then judged;
S104:Described supplemental characteristic, variable and function are passed through another assisted process by process, will by described assisted process Described supplemental characteristic, variable and function are divided into overall type or local type, and are stated, and it is effectively multiple to call principal function to carry out With.
Wherein in an embodiment, methods described also includes:
Judge described supplemental characteristic for formal parameter or essential parameter;
If being judged as formal parameter, described formal parameter is abandoned;
If being judged as essential parameter, described essential parameter is multiplexed.
Wherein in an embodiment, methods described also includes:
Judge described variable for global variable or local variable;
If being judged as global variable, carry out overall situation statement;
If being judged as local variable, carrying out local and stating.
Wherein in an embodiment, methods described also includes:
If judging, described function, for principal function, principal function is demultiplexed;
If judging, described function is standby function, will be abandoned for function.
Wherein in an embodiment, methods described also includes:
After judging described supplemental characteristic, variable and function reusable, then write corresponding address in dynamic link library, with Described supplemental characteristic, variable and function are transmitted, and another data of address collection of corresponding corresponding dynamic link library The supplemental characteristic in storehouse, variable and function.
Refer to Fig. 2, a kind of internal memory multiplexer of dynamic link library, described device includes:
Acquisition module 100, for by the supplemental characteristic obtaining in function acquisition dynamic link library of process, variable and function;
First judge module 200, for judging the whether standard compliant data structure of described supplemental characteristic, variable and function;
Result judge module 300, for judging described supplemental characteristic, variable and function reusable;
Transparent transmission module 400, for described supplemental characteristic, variable and function are passed through another assisted process by process, by institute State assisted process and described supplemental characteristic, variable and function are divided into overall type or local type, and stated, and call main letter Number is effectively multiplexed.
Wherein in an embodiment, described device also includes:
Second judge module, for judging described supplemental characteristic for formal parameter or essential parameter;
Discard module, if for being judged as formal parameter, described formal parameter is abandoned;
Multiplexing module, if for being judged as essential parameter, described essential parameter is multiplexed.
Wherein in an embodiment, described device also includes:
3rd judge module, for judging described variable for global variable or local variable;
If being judged as global variable, carry out overall situation statement;
If being judged as local variable, carrying out local and stating.
Wherein in an embodiment, described device also includes:
4th judge module, if for judging that described function, for principal function, principal function is demultiplexed;
If judging, described function is standby function, will be abandoned for function.
Wherein in an embodiment, described device also includes:
Sending module, for after judging described supplemental characteristic, variable and function reusable, then writing in dynamic link library Corresponding address, described supplemental characteristic, variable and function are transmitted, and the address of corresponding corresponding dynamic link library is received Collect supplemental characteristic, variable and the function of another data base.
The invention provides a kind of internal memory multiplexing method of dynamic link library, methods described includes:By the acquisition of process Supplemental characteristic in function acquisition dynamic link library, variable and function;Judge whether described supplemental characteristic, variable and function meet The data structure of standard;If so, described supplemental characteristic, variable and function reusable are then judged;By described supplemental characteristic, variable and Function passes through another assisted process by process, is divided into described supplemental characteristic, variable and function by described assisted process Overall type or local type, and stated, and call principal function to be effectively multiplexed.The internal memory multiplexing method of this dynamic link library Majority function, variable and function effectively can be multiplexed.
Above operation logic of the present invention is described in detail, the explanation of above-mentioned operation logic is only intended to help understand The method of the present invention and its core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, in tool All will change on body embodiment and range of application, in sum, this specification content should not be construed as to the present invention Restriction.

Claims (10)

1. a kind of internal memory multiplexing method of dynamic link library is it is characterised in that methods described includes:
By the supplemental characteristic obtaining in function acquisition dynamic link library of process, variable and function;
Judge the whether standard compliant data structure of described supplemental characteristic, variable and function;
If so, described supplemental characteristic, variable and function reusable are then judged;
Described supplemental characteristic, variable and function are passed through another assisted process by process, will be described by described assisted process Supplemental characteristic, variable and function are divided into overall type or local type, and are stated, and call principal function to be effectively multiplexed.
2. method according to claim 1 is it is characterised in that methods described also includes:
Judge described supplemental characteristic for formal parameter or essential parameter;
If being judged as formal parameter, described formal parameter is abandoned;
If being judged as essential parameter, described essential parameter is multiplexed.
3. method according to claim 1 is it is characterised in that methods described also includes:
Judge described variable for global variable or local variable;
If being judged as global variable, carry out overall situation statement;
If being judged as local variable, carrying out local and stating.
4. method according to claim 1 is it is characterised in that methods described also includes:
If judging, described function, for principal function, principal function is demultiplexed;
If judging, described function is standby function, will be abandoned for function.
5. method according to claim 1 is it is characterised in that methods described also includes:
After judging described supplemental characteristic, variable and function reusable, then write corresponding address in dynamic link library, with Described supplemental characteristic, variable and function are transmitted, and another data of address collection of corresponding corresponding dynamic link library The supplemental characteristic in storehouse, variable and function.
6. a kind of internal memory multiplexer of dynamic link library is it is characterised in that described device includes:
Acquisition module, for by the supplemental characteristic obtaining in function acquisition dynamic link library of process, variable and function;
First judge module, for judging the whether standard compliant data structure of described supplemental characteristic, variable and function;
Generate object module, for judging described supplemental characteristic, variable and function reusable;
Transparent transmission module, for described supplemental characteristic, variable and function are passed through another assisted process by process, by described auxiliary Help process that described supplemental characteristic, variable and function are divided into overall type or local type, and stated, and call principal function to enter Row is effectively multiplexed.
7. device according to claim 6 is it is characterised in that described device also includes:
Second judge module, for judging described supplemental characteristic for formal parameter or essential parameter;
Discard module, if for being judged as formal parameter, described formal parameter is abandoned;
Multiplexing module, if for being judged as essential parameter, described essential parameter is multiplexed.
8. device according to claim 6 is it is characterised in that described device also includes:3rd judge module, for judging Described variable is global variable or local variable;
If being judged as global variable, carry out overall situation statement;
If being judged as local variable, carrying out local and stating.
9. device according to claim 6 is it is characterised in that described device also includes:4th judge module, if for sentencing The described function that breaks is principal function, then demultiplexed principal function;If judging, described function is standby function, will carry out for function Abandon.
10. device according to claim 6 is it is characterised in that described device also includes:Sending module, for judging After described supplemental characteristic, variable and function reusable, then write corresponding address in dynamic link library, by described parameter Data, variable and function are transmitted, and the parameter number of another data base of address collection of corresponding corresponding dynamic link library According to, variable and function.
CN201610760120.0A 2016-08-30 2016-08-30 Memory multiplexing method and device for dynamic link library Expired - Fee Related CN106406857B (en)

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 true CN106406857A (en) 2017-02-15
CN106406857B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
包佃清: "利用DLL技术实现代码复用的研究", 《连云港师范高等专科学校学报》 *

Also Published As

Publication number Publication date
CN106406857B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN106802826B (en) Service processing method and device based on thread pool
US9760348B2 (en) Verification of a dataflow representation of a program through static type-checking
CN106528065B (en) A kind of thread acquisition methods and equipment
US20180203823A1 (en) In-Vehicle Control Device
US20140282428A1 (en) Embedding and executing trace functions in code to gather trace data
US20180025162A1 (en) Application program analysis apparatus and method
US10216502B2 (en) System module deployment optimization
CN107179982B (en) Cross-process debugging method and device
CN106406857A (en) Memory reusing method and device for dynamic link library
CN106502842A (en) Data reconstruction method and system
CN103914304B (en) Method for converting different structure type parameters on basis of SAP (service access point) platforms
US9256398B2 (en) Device and method of increasing dynamically-typed software efficiency
US11593686B2 (en) Methods, systems and apparatus to improve deep learning resource efficiency
CN104572482A (en) Process variable storage method and device
CN113468564A (en) Data processing method and device, electronic equipment and storage medium
KR20220086245A (en) Task execution system and mehtod of operating system for vehicle
CN112559132B (en) Safe static detection method and device for containerized deployment application
CN112540842A (en) Method and device for dynamically adjusting system resources
US9336011B2 (en) Server and booting method
CN109558332B (en) Object recovery method and device, electronic equipment and storage medium
CN112784291B (en) Big data desensitization method and system
US9372783B2 (en) Recording the core data of a computer process which provides trace data
CN114091111B (en) Method and device for storing intelligent contracts of block chains
CN114942797B (en) System configuration method, device, equipment and storage medium based on side car mode
CN106462440A (en) Method for creating a hypervisor unit for embedded systems

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