Method and system for generating function call code based on call stack and dependent path

A function call and code generation technology, applied in the direction of creating/generating source code, etc., can solve problems such as complex execution sequences, and achieve the effect of solving complex execution sequences

Active Publication Date: 2019-01-18
PEKING UNIV
View PDF3 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The main purpose of the present invention is to provide a method and system for generating function call codes based on call stacks and dep...

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
  • Method and system for generating function call code based on call stack and dependent path
  • Method and system for generating function call code based on call stack and dependent path
  • Method and system for generating function call code based on call stack and dependent path

Examples

Experimental program
Comparison scheme
Effect test

example 2

[0168] Example 2: This case is based on WeChat version 6.3.32 of the pp assistant application market. When clicking to enter a group chat room, the user can see the chat information that has been sent and the user who sent the chat information. In this example, it is necessary to develop a microservice that obtains messages from a specified group chat. The same operation as in Example 1, firstly use the prototype system of the Netgear Software Behavior Reflection Technology Framework to obtain the runtime stack model and runtime heap model of this function. At the same time, to mark the target data, first use one of the messages "hmm" as a keyword to search in the runtime stack model to obtain the occurrence positions of all objects containing this keyword. Still take the first function call as the target function. This function call depends on a new object 0x243b5420. Mark this object as the target object and this function as the termination point. At this point, the labelin...

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 method and a system for generating a function calling code based on a calling stack and a dependent path, By monitoring the running of Android applications, the applied behavioral reflection runtime model is obtained, and the target object containing the target data is annotated in the runtime stack model of the behavioral reflection runtime model, All function call setsof the target object are generated, and each function call set is graded according to the difficulty of generating function call code using each function call set, and the function call set is recommended according to the graded function call set to generate function call code. The invention can generate a code corresponding to a function call, For each new object that is not constructed, the functions that are called before the object are quickly found out, and the functions that take the object as parameters and the function call stack are combined to form a plurality of functions, and on this basis, a scheme with high possibility of code generation is recommended, which effectively solves the problem of complex execution sequence in the development of Android application micro-services.

Description

technical field [0001] The invention relates to computer software, in particular to a method and system for generating function call codes based on call stacks and dependent paths. Background technique [0002] The opening and integration of application functions and data can generate huge value, but most of the functions and data of Android applications do not provide interfaces that can be programmed and called, making it difficult to realize the opening and integration of functions and data. At present, the best way to realize the openness and integration of Android application functions and data is to micro-service Android applications, that is, to extract the functions and data in Android applications in the form of services. For Android applications, microservices require modifications to the application while it is running. In classical software engineering, the emphasis is on modifying software in the development state, which does not support the microservice requir...

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
IPC IPC(8): G06F8/30
CPCG06F8/30
Inventor 蔡华谦黄罡骆宇冲景翔马郓
Owner PEKING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products