Unlock instant, AI-driven research and patent intelligence for your innovation.

Just-in-time compilation engine adaptive function loading method

An adaptive function and compilation engine technology, applied in the field of compilation optimization, can solve problems such as inability to meet the loading requirements of external functions of user programs, limited space capacity of the core group, etc., and achieve the effect of effective utilization and perfect functions

Active Publication Date: 2022-07-12
JIANGNAN INST OF COMPUTING TECH
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This kind of space division makes the executable address space of the master-slave core of the domestic heterogeneous many-core platform non-consistent. The slave core function needs to be loaded into a specific core group space to run normally, but the capacity of the core group space is limited and cannot satisfy all The loading requirements of the external functions of the user program make it difficult for the JIT compilation engine of the domestic many-core processor to effectively utilize the memory space

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Just-in-time compilation engine adaptive function loading method
  • Just-in-time compilation engine adaptive function loading method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0026] Embodiment: A method for loading an adaptive function of a just-in-time compilation engine, which is oriented to a heterogeneous many-core platform, includes the following steps:

[0027] S1. For a function symbol, the execution engine checks whether it is an external function, as follows:

[0028] S11. For a function symbol, the execution engine searches for the definition of the function symbol in the user program code segment, and if found, marks the function symbol in the user program code segment as an internal function symbol, and the execution engine obtains the internal function symbol from the user program code segment. Function entry address, and jump to S4;

[0029] S12. For a function symbol, if the definition of the function symbol is not found in the user program code segment, mark the function symbol as an external function symbol, and execute S2;

[0030] S2. For an external function symbol marked in S12, the execution engine checks whether it is a slav...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a real-time compilation engine adaptive function loading method, which is oriented to a heterogeneous many-core platform and includes the following steps: S1. For a function symbol, the execution engine checks whether it is an external function; S2. For an external function marked in S1 function symbol, the execution engine checks whether it is a slave kernel function, and uses the corresponding dynamic link library loading function to load the dynamic link library containing the external function symbol; S3, obtain the external function entry address from the dynamic link library loaded in step S2 ; S4, use the external function entry address obtained in step S3 to perform GOT table overwriting and relocation backfilling on the user program code segment. The invention realizes the effective utilization of the core group space by the heterogeneous many-core program, and improves the function of the real-time compilation engine oriented to the heterogeneous many-core platform.

Description

technical field [0001] The invention relates to a real-time compilation engine adaptive function loading method, which belongs to the technical field of compilation optimization. Background technique [0002] Just-In-Time is a way of dynamically compiling intermediate code, translating the code into machine code and executing it when the program is executed as needed. Compilers of emerging languages ​​such as Java language, .net platform, and LuaJIT widely use just-in-time compilation technology. Just-in-time compilation combines the advantages of static compilation and interpreted execution, and can generate efficient machine code with sufficient flexibility. Just-in-time compilation calls inner and outer functions differently. For internal functions, the execution engine directly obtains the function entry address from the program code segment. For external functions, the execution engine looks up the corresponding symbols from all dynamic libraries loaded into memory. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/41G06F9/445
CPCG06F8/41G06F9/44521Y02D10/00
Inventor 沈莉周文浩王飞吴伟武文浩
Owner JIANGNAN INST OF COMPUTING TECH