Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

47 results about "Intermediate code" patented technology

Code generation method and device based on large model, storage medium and computer equipment

The invention discloses a code generation method and device based on a large model, a storage medium and computer equipment. The method comprises the steps that a UI prototype draft of a target service is acquired; performing element identification on the UI prototype draft through a picture identification large model, and determining element information in the UI prototype draft; generating a code generation cue word based on the element information and a preset cue word, inputting the code generation cue word into a code generation large model to obtain an intermediate code corresponding to the UI prototype draft, and arranging a target service code of the target service based on the intermediate code. The automatic process from UI design to code generation is achieved, the tedious process of manually writing UI components and debugging interaction logic in traditional development is avoided, repeated work and human errors are reduced, developers can put more energy into core service function development, then development efficiency is improved, code quality is guaranteed, and the development cost is reduced. And rapid and high-quality delivery of the project is promoted.
Owner:CSC FINANCIAL CO LTD

Compilation method for compiling C language source code into RISC-V assembly code

The invention discloses a compiling method for compiling a C language source code into an RISC-V assembly code. The method comprises the following steps: acquiring a C language source code; performing lexical analysis on the C language source code to generate a mark flow; performing syntactic analysis on the mark flow, and constructing an abstract syntax tree; performing semantic analysis on the abstract syntax tree to generate a target abstract syntax tree; constructing a runtime environment of the RISC-V assembly code; generating an intermediate code and a control flow diagram corresponding to the intermediate code according to a rule in the runtime environment and the target abstract syntax tree; generating a target code by using the intermediate code and the control flow diagram corresponding to the intermediate code; according to the technical scheme, the intermediate representation more adaptive to RISC-V custom instruction mapping can be generated, so that the execution efficiency of assembly codes is improved; and meanwhile, by designing a lightweight runtime environment, the performance overhead is further reduced.
Owner:CHINA SOUTHERN POWER GRID COMPANY

Source code correction program and source code correction device

PendingJP2026013547AProgram code adaptionCode compilationSoftware engineeringCoding conventions
To efficiently prepare a program of high quality corresponding to various coding rules and various using program languages.SOLUTION: By the processing 2, the definition file A2 is used to convert the source code described in the predetermined program language into intermediate codes separated for each component having a meaning. The intermediate codes are converted into post-proofreading intermediate codes matched with the coding convention of the target program language by using a coding convention definition file A3 by processing 3. Further, by the process 4, the post-proofreading intermediate codes are converted into post-proofreading source codes of the target program language by using the source code conversion definition file A4.SELECTED DRAWING: Figure 3
Owner:SAXA

A lightweight robotic process automation method based on browser extension

The application relates to a lightweight robot process automation method based on a browser extension and belongs to the technical fields of robot process automation and browser plug-ins. The method comprises the following steps: initializing a drawing environment, preprocessing a node style, binding an input event to construct an interaction mechanism; communication is established through an event bus, an interface is constructed through a dynamic form component, instructions are encapsulated and syntax verification is performed; a command data format is defined, after syntax and semantic verification, the command data format is converted into executable code by an intermediate code generator, and error feedback visualization is supplemented; a content script is used to access a monitoring webpage DOM, an element operation and RPA instruction mapping library are established, and automatic conversion of a capture result into an instruction is realized; a lightweight execution kernel is realized through intermediate code acquisition, a process is monitored in an asynchronous non-blocking mode, and execution state global sharing and real-time updating are realized through a state management library. The lightweight architecture design of RPA, high-performance interaction optimization, intelligent process configuration and precise execution monitoring are realized.
Owner:MYRON INTELLIGENT TECH (SHANGHAI) CO LTD

Source code positioning detection method and system, electronic device and storage medium

The embodiment of the application discloses a source code positioning detection method and system, electronic equipment and a storage medium, and relates to the technical field of static security detection. The method comprises the following steps: generating a corresponding bytecode file based on a to-be-positioned source code; the bytecode file comprises structure information, metadata and method information; analyzing the bytecode file to obtain intermediate code corresponding to the bytecode file; parsing the intermediate code to generate a function sequence list called in the to-be-positioned source code; the function sequence list comprises attribute information and calling information of a function; and matching and querying according to the function sequence list to determine position information of the to-be-positioned source code. The application can realize accurate matching and positioning of a source code function, thereby solving the false alarm problem of functions with the same name in different modules and being suitable for a source code function static detection scene.
Owner:HARBIN ANTIY TECH

Real-time compiling interpreter system capable of running on MCU, FPGA, GPU or universal CPU

The invention discloses a real-time compiling interpreter system capable of running on an MCU (Microprogrammed Control Unit), an FPGA (Field Programmable Gate Array), a GPU (Graphics Processing Unit) or a universal CPU (Central Processing Unit), and belongs to the technical field of embedded systems and computer compiling. According to the system, hardware decoupling is achieved through a modular architecture, and C / C + +, Python and LLVM intermediate codes are supported to be converted into unified intermediate byte codes; a byte code interpreter and an instant compiling module are integrated, both quick starting and efficient execution are considered, and starting can be completed within 1 millisecond; an event driving and periodic scheduling mechanism is provided, and the real-time response requirement is met; a segmented memory model and a security policy are adopted, low-power-consumption edge equipment is adapted, and domestic instruction sets such as RISC-V and LoongArch are compatible. The system solves the problems that a traditional embedded system is poor in flexibility, difficult in cross-platform, insufficient in real-time performance and the like, can achieve unified execution of heterogeneous platform codes, is suitable for the fields of industrial control, Internet of Things edge AI and the like, and has remarkable technical progress and industrial value.
Owner:GUANGZHOU KINGPIN IND CO LTD

A method and system for constructing an application installation package, an electronic device, and a storage medium

PendingCN122331945ASoftware engineeringIntermediate code
This application discloses a method, system, electronic device, and storage medium for constructing an application installation package, belonging to the technical field of software engineering. The method for constructing the application installation package includes: determining the current environment; determining module requirement information based on the current environment; wherein the module requirement information describes whether functional modules need to be integrated into the application installation package; the functional modules include a first type of functional module and a second type of functional module, the first type of functional module being those that need to be integrated into the application installation package, and the second type of functional module being those that do not need to be integrated into the application installation package; executing a first control operation and a second control operation to obtain an intermediate code file; and packaging the intermediate code file and corresponding resource files to obtain the application installation package. This application can construct an application installation package while avoiding useless code residue.
Owner:FOUNDER SECURITIES CO LTD

A device state analysis method and system based on DSL and dynamic compilation technology

The application discloses a device state analysis method and system based on DSL and dynamic compilation technology, wherein the method comprises the following steps: S1, importing a DSL file of device state parameters; S2, analyzing the DSL file through a T4 text template engine to dynamically generate C# intermediate code; S3, using a Roslyn compiler to dynamically compile to generate an assembly; S4, loading the assembly through reflection to receive a device state byte array data frame; S5, matching a structure type corresponding to the byte array to convert the byte array into a structure instance through memory mapping; S6, calling built-in or extended analysis methods through reflection to convert the structure into a general parameter class object; S7, outputting the instantiated object; and S8, transmitting, displaying or saving the device parameter instantiated object according to actual requirements. The application greatly shortens the analysis rule configuration time; and a new device protocol only needs to write a DSL file, without the need of redeploying the system; in addition, the application supports plug-in extension of custom analysis methods.
Owner:HEFEI ZHONGKE TIANTONG TECHNOLOGY CO LTD

An object code segment acquisition method and apparatus

PendingCN122387503ASequence analysisObject code
The application discloses a target code segment acquisition method and device, relates to the technical field of computers, and can reduce the time cost and false positive rate of running sequence analysis. In the application, intermediate code of an application program and dynamic data including a running track function acquired when the application program is running are acquired, functions different from the running track function in the intermediate code are removed, and a target function of the intermediate code is obtained; running sequence analysis is performed on the target function, and a first target code segment in which the running sequence of the code in the target function is different from a preset sequence is obtained. Based on the target code segment acquisition method provided in the application, the analysis range of application program running sequence analysis can be reduced, and the time cost and false positive rate can be reduced.
Owner:HUAWEI TECH CO LTD

A system and method for parsing PLC intermediate code based on compilation technology and automatically generating data bridge description

The application provides a system and method for parsing PLC intermediate code based on compilation technology and automatically generating data bridge description. The system comprises: a preprocessing module for normalizing the C intermediate code generated by matIEC; a lexical analysis module for converting the code into a Token stream; a syntax analysis module for constructing an abstract syntax tree; an abstract syntax tree processing module for traversing the AST to extract type definitions, fields and memory layouts, and converting them into an internal data model; a code generation module for serializing the data model into a standardized JSON file, including data item name, type, size, offset, memory type and nested sub-items; a version management module for automatically updating the compiler version number and embedding the JSON based on CMake during building. The application realizes full-automatic extraction and standardized output of PLC data structure, eliminates manual parsing, ensures accurate memory layout, supports cross-platform integration and version consistency verification.
Owner:SHAANXI ROCKTECH ELECTRONICS INFORMATION TECH CO LTD

Binary inter-content difference operation graphical user interface for electronic devices

1. The name of the design product: binary code content difference operation graphical user interface of electronic device. 2. The use of the design product: for an electronic device. 3. The design points of the design product: in the graphical user interface. 4. The picture or photo that best shows the design points: front view. 5. Other circumstances that need to be explained: the design product is used to display the information of the content difference between the binary code of the system and the binary code of the vulnerability / patch. The front view contains two columns on the left and right. The left red title column represents the disassembled intermediate code of the vulnerability existing in the binary code of the system. The red title below includes two columns, the left column shows the line number of the intermediate code, and the right column shows the content of the line of intermediate code. The right green title represents the disassembled intermediate code of the binary code of the vulnerability or patch. The green title below includes two columns, the left column shows the line number of the intermediate code, and the right column shows the content of the line of intermediate code. When the content of the intermediate code in the same line under the red title and the green title is inconsistent, the line of code under the red title is highlighted in yellow, and the line under the green title is highlighted in light green. In addition, for the specific different intermediate codes in the content of the same line of intermediate code, the specific different intermediate codes under the red title are highlighted in red, and the specific different intermediate codes under the green title are highlighted in dark green. The color of the title in the front view or the color of the highlight can be customized. The cross in the front view represents text and / or numbers and / or letters and / or symbols. The human-computer interaction mode of the user interface: in an example, when the content of the intermediate code in the same line under the red title and the green title is inconsistent, the line of code under the red title is highlighted in yellow, and the line under the green title is highlighted in light green, the user can locate the inconsistent content and modify the inconsistent content, and through the interface of the design product, the human-computer interaction operation between the product and the user can be realized.
Owner:SPARKLE IN TECHNOLOGY INVESTMENT LTD

Method and device for running programmable logic controller program and electronic equipment

The invention relates to the technical field of industrial control, and provides an operation method and device of a programmable logic controller program and electronic equipment. According to the method, a syntax tree is generated by analyzing a programmable logic controller program; traversing the syntax tree to generate an intermediate code, constructing a time planning model based on the intermediate code, and optimizing the intermediate code according to the time planning model to obtain a target intermediate code; in the running process of the programmable logic controller program, the target intermediate code is compiled in time, and when the programmable logic controller program runs to the target node corresponding to the target intermediate code, the compiled target intermediate code is executed. Structured analysis, time constraint modeling and deterministic immediate compiling execution of the PLC control program are achieved, constraint optimization of the time planning model is combined, the execution time of each intermediate code snippet can be predicted and controlled, and the program operation efficiency and response speed are improved.
Owner:BEIJING HOLLYSYS TECHNOLOGY RESEARCH INSTITUTE CO LTD

Application development method and device and program product

The invention provides an application development method and device and a program product. According to the method, a first compiling interface is displayed in response to a first trigger operation, the first compiling interface is associated with a first software toolkit, and the first software toolkit is integrated in a pluggable form; and in response to the second trigger operation, the first function code is compiled into an intermediate code and / or compiled into a second function code in combination with the accessed first interface information base, the first function code is compiled in a first language form, and the second function code is presented in a second language form. According to the method, the quick debugging of the code can be realized and / or the second function code which can be directly matched with a native platform and has the performance comparable to that of a pure native application can be obtained through a unified development language without compiling the whole client project, and the development efficiency and the high performance during operation are both considered; and the development threshold and the development cost of the client application are better reduced.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD

Code conversion method and device, equipment, storage medium and program product

The invention provides a code conversion method and device, equipment, a storage medium and a program product, and relates to the field of financial science and technology. The method comprises the steps of obtaining a to-be-converted first code, and processing the first code to obtain a first intermediate code; the first code is a code of a page generated by the server; converting the first intermediate code based on a preset knowledge base rule to obtain a second intermediate code; the knowledge base rule comprises a component mapping relation table, a frame grammar mapping relation table, an unstructured case rule and a user-defined rule; generating a second code based on the second intermediate code; and the second code is a code for constructing a client architecture of a user interface, so that by constructing an automatic code conversion process, the dependence on skills of developers is reduced, the conversion efficiency and consistency are remarkably improved, and the expansibility and flexibility are ensured through a configurable knowledge base rule, thereby supporting rapid iterative update of a front-end project.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Code optimization method and system based on DDFG and perception self-attention

The invention provides a code optimization method and system based on DDFG and perception self-attention. The code optimization method comprises the following steps: cleaning and standardizing intermediate codes: outputting a standardized intermediate code sequence; construction and extraction of a heterogeneous dense data flow diagram DDFG: constructing the heterogeneous dense data flow diagram DDFG according to the standardized intermediate code sequence; sequence translation: inputting a standardized intermediate code sequence, graph nodes extracted from a heterogeneous dense data flow graph DDFG and the directed edge into an encoder-decoder based on a transformer architecture, when the encoder-decoder based on the transformer architecture calculates self-attention scores of any two nodes in the graph nodes, setting a structure mask matrix Mgraph, and when the self-attention scores of any two nodes in the graph nodes are calculated by the encoder-decoder based on the transformer architecture, carrying out sequence translation on the structure mask matrix Mgraph, when a directed edge does not exist between two nodes in the graph nodes, applying a negative penalty value to the structure mask matrix Mgraph, and when a directed edge exists between the two nodes, applying a neutral value to the structure mask matrix Mgraph; and optimization code output: the encoder-decoder based on the transformer architecture outputs the optimized intermediate code sequence.
Owner:SHANGHAI XINLIJI SEMICON CO LTD

Grammar class implementation method and system for variable operation tracking integrated in programming language

The invention relates to the technical field of compiler implementation, and discloses a grammar class implementation method and system for variable operation tracking integrated in a programming language, and the method comprises the steps: instantiating a grammar class of an OSE programming language, and building a binding mapping relation between a user interface element and the grammar class, so as to configure a Traceable variable tracking interface; identifying a type identifier of the target variable in the binding mapping relation to generate an executable intermediate code of the target variable; defining a callback update triggering rule corresponding to the user interface element in the Traceable variable tracking interface, and executing callback update processing of the user interface element based on the callback update triggering rule after the operation behavior of the target variable is intercepted; and fusing a Traceable variable tracking interface, executing the intermediate code and callback the updating result, and outputting an operation tracking result of the target variable. According to the method, the expandability and the code maintainability of the programming language can be improved through the built-in grammar class defined in the OSE programming language.
Owner:GUANGZHOU YUNBIAO NETWORK TECH CO LTD

Positioning method, program product, medium and equipment

The invention relates to the technical field of software development, in particular to a positioning method, a program product, a medium and equipment. The method provided by the invention comprises the following steps: acquiring a plurality of codes causing software problems and a code development sequence, and generating a submission record set; obtaining an intermediate code in the submission record set based on the successive development order; executing a test operation to test whether a software problem is caused when the intermediate code is changed; if yes, the codes, earlier than the intermediate codes in development order, in the multiple codes serve as a new submission record set; if not, taking the codes with the development order later than that of the intermediate codes in the plurality of codes as a new submission record set; and obtaining an intermediate code in the new submission record set and executing the same judgment operation until only one code is left in the new submission record set. And the code change which causes the software problem at the earliest can be quickly positioned.
Owner:HUAXIN GIANTS (HANGZHOU) MICROELECTRONICS CO LTD

Code coverage statistics method, electronic device and storage medium

This application provides a code coverage statistics method, electronic device, and storage medium. The method includes: compiling source code to generate intermediate code; the source code includes coverage statistics code; performing global syntax analysis on the intermediate code to generate a node tree framework; the node tree framework includes hierarchical nodes, and the hierarchical nodes are associated with the code structure of the intermediate code; splitting the node tree framework based on the hierarchical nodes to obtain multiple local subtree frameworks; sending the multiple local subtree frameworks to multiple distributed computing nodes for local compilation; receiving the local coverage node tree generated by the local compilation; the local coverage node tree includes coverage nodes, and the coverage nodes include coverage data corresponding to the coverage statistics code in the local subtree framework; aggregating the coverage data of multiple local coverage node trees to generate code coverage statistics results.
Owner:XINHUAZHANG TECH CO LTD

Low-code page generation method, system and equipment and storage medium

The invention relates to the technical field of artificial intelligence, and particularly provides a low-code page generation method, system and device and a storage medium, and the method comprises the steps: receiving a natural language design input of a user, carrying out semantic analysis, and then generating a structured intention map which comprises intention nodes, semantic attributes and dependency relationships among the nodes; based on an intention-code bidirectional mapping mechanism, generating an intermediate code with a semantic identifier according to the intention graph; executing code rendering to generate a page effect, and capturing page vision, structure and interaction features to generate an actual effect feature vector; comparing the vector with an expected feature vector in the intention map to generate a difference vector; and on the basis of the difference vector, parameters of the design intention model and the bidirectional mapping mechanism are adjusted through a closed-loop correction model, and self-adaptive optimization of subsequent code generation is realized. According to the method, by constructing a real-time closed loop of'design intention-code-effect ', the problems of intention fuzziness and feedback lag in a natural language generation webpage are effectively solved.
Owner:SHANDONG INSPUR SCI RES INST CO LTD

Methods and systems for optimizing computer code

A computer implemented method for compiling a computer program, the method including receiving a source code for a computer program, use-case data, and user-selected operating parameters, inserting optimization hook code into the source code based upon identified code loops, compiling source code with optimization hook code, executing the compiled code with optimization hooks code, wherein the optimization hooks of the optimization hook code are set to an initial value, receiving intermediate code based upon the executing, compiling the received intermediate code, executing the compiled received intermediate code using the use-case data, evaluating the executing the compiled received intermediate code using the use-case data based upon performance metrics, identifying code associated with preferential performance metrics, and compiling the identified code into a runnable computer program.
Owner:RIBBON OPTIMIZATION SOFTWARE LLC

ARM NEON to RISC-V vector extension assembly code translation method and system

PendingCN121658077AProgram controlMemory systemsCode TranslationObject code
The invention discloses an assembly code translation method and system for vector extension from ARM NEON to RISC-V, and belongs to the technical field of computer software cross-architecture translation. The method comprises the following steps of: improving an ARM NEON instruction into an equivalent LLVM IR expression form by utilizing a pre-designed mapping rule; performing general intermediate code optimization and special optimization oriented to RISC-V vector extension characteristics on the LLVM IR expression form; and reducing the optimized LLVM IR to a target code of the RISC-V vector extension platform. According to the method, the mapping rule beneficial to LLVM compiler instruction generation is constructed while specific optimization is performed for the RISC-V vector extension architecture, so that the instruction coverage rate is increased.
Owner:INST OF SOFTWARE - CHINESE ACAD OF SCI

Compiler-based data processing method, device and readable storage medium

The application discloses a compiler-based data processing method, device and readable storage medium. The compiler-based data processing method comprises the following steps: obtaining a target annotation in source code; loading an annotation processing plug-in through a compiler, and obtaining a target annotation code corresponding to the target annotation in the annotation processing plug-in; generating a target annotation list for describing a data structure of the target annotation according to the target annotation code, performing translation processing on the target annotation list, and generating intermediate code corresponding to the source code; and generating a target file corresponding to the intermediate code through the compiler. By using the application, the development efficiency can be improved.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD

A resource management method, system and device for PLC program download and a medium

The application discloses a kind of resource management methods, systems, equipment and medium of PLC program download, the method is first by host computer integrated development environment, obtains the PLC source program that user writes, subsequently to the PLC source program obtained Compiling conversion, to generate standardized intermediate code, then to the intermediate code generated Feature extraction, to obtain corresponding quantization characteristic index, then the quantization characteristic index extracted is input into preset download prediction model, to obtain the prediction value of target variable, finally the prediction value of target variable is compared with the resource safety threshold of target variable that corresponding host computer is preset, and according to the comparison result selection executes PLC program download operation or triggers early warning mechanism.The method is through the innovative download prediction model and control mechanism, significantly improve the success rate of program download, optimize the efficiency of engineering debugging, and greatly reduce the risk of system collapse, realize intelligent resource management in all directions.
Owner:SHANGHAI BAOSIGHT SOFTWARE CO LTD

Task processing method, device and equipment and readable storage medium

The invention provides a task processing method, device and equipment and a readable storage medium, a task function is used as an instruction to be transmitted in different runtime environments, the task function is packaged in an intermediate code form irrelevant to a hardware architecture and a memory address, and configuration information and an access control strategy required by execution are combined, so that the task processing efficiency is improved. The method comprises the following steps: establishing a complete instruction packet which can be independently transmitted and executed, and mapping an intermediate code corresponding to a task function to a local executable memory of an instruction executor, so that the instruction executor runs the task function in the local memory of a system, and a provider and the executor do not need to pre-agree a data structure or share an interface type definition; and safe and dynamic task execution without strong coupling agreement is realized in a runtime environment in which an instruction provider and an executor are completely isolated.
Owner:BEIJING XUEDIRUANJIAN DEVELOPMENT CO LTD

Music generation method and device, equipment and storage medium

PendingCN121640966AElectrophonic musical instrumentsEngineeringIntermediate code
The embodiment of the invention provides a music generation method and device, equipment and a storage medium. The method comprises the following steps: based on a received music generation request, constructing a target mask corresponding to the music generation request; generating an intermediate encoded representation based on the mask matrix and the first encoded representation of the reference music content; processing the intermediate coded representation using a target model to generate a second coded representation, the second coded representation being generated by replacing a target portion in the intermediate coded representation, the target portion being indicated by the mask matrix; and generating the target music content based on the second coded representation. Therefore, according to the embodiment of the invention, expected music content can be generated by utilizing the mask matrix.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD +1

Method for generating ladder diagram of programmable controller based on large language model

The invention discloses a method for generating a ladder diagram of a programmable controller based on a large language model, which belongs to the technical field of programmable controllers, and comprises the following steps of: performing structured processing on a logic control demand which is described by a natural language and comprises I / O input, a control logic relationship and I / O output through a first large language model; the generated structured logic control demand obtains an I / O allocation table and an IL intermediate code through a pre-trained base large language model, the I / O allocation table represents variable information and is converted into a first element in a specific format, and the IL intermediate code is logic control information organized based on variables in the I / O allocation table and is converted into a second element in a specific format; generating the incidence relation of the ladder diagram control represented by the AOV network by traversing the IL intermediate code, and injecting the relative position information of the ladder diagram control in the generation process; traversing the AOV network to generate a second element represented by a specific format; and combining and assembling the first element and the second element to form a file of a target ladder diagram code represented by a specific format.
Owner:HANGZHOU DIANZI UNIV

Multi-level optimization execution method and system for smart contract virtual machine based on Go language

This invention proposes a multi-level optimization execution method and system for a smart contract virtual machine based on the Go language. By constructing a three-level collaborative optimization architecture, it significantly improves execution efficiency and resource utilization. The intermediate code optimization layer integrates automatic vectorization technology with a dynamic profile-guided optimization recompilation mechanism driven by production environment configuration, breaking through the performance bottleneck of the core algorithm. The memory management optimization layer expands the underlying memory pool of the Go language and introduces an application-layer automated pooling mechanism, effectively reducing memory pressure and connection overhead. The instruction scheduling optimization layer combines dynamic time slice adjustment for computationally intensive tasks at the single-core level with optimistic locking concurrent execution technology for multi-core multi-version concurrency control, achieving efficient task collaboration. Through static compilation optimization, dynamic resource adaptation, and a full-process collaborative mechanism, a dynamic balance between high performance and low latency is achieved in scenarios such as encrypted computing and multi-core concurrency, providing a high-performance and highly scalable execution solution for the Go language smart contract virtual machine.
Owner:HANGZHOU YUNXIANG NETWORK TECH +1

Acquisition method and device of dynamic call chain and electronic equipment

The invention relates to the technical field of computers, in particular to a dynamic call chain obtaining method and device and electronic device.The method comprises the steps that a target function pair in a target code file is determined, and a first instrumentation node serving as a front node of a first node is inserted into a target abstract syntax tree of the target code file, the first node refers to a node representing a called function, and the first instrumentation node is used for representing a corresponding call chain record statement; code inverse solution is conducted on the target abstract syntax tree after instrumentation, an intermediate code file is obtained, a running result is obtained by running the intermediate code file, and the running result comprises calling time for calling a called function recorded by a chain record statement; organizing functions in the plurality of target function pairs according to the calling time of the called function to obtain a dynamic calling chain; through the method provided by the invention, the dynamic call chain for the target code file can be effectively obtained, and the actual call condition of the dynamic call chain can be effectively determined.
Owner:TENCENT TECHNOLOGY (SHENZHEN) CO LTD