Method and apparatus for processing self-modifying codes

A self-modifying, code technology, applied in machine execution devices, electrical digital data processing, instruments, etc., can solve problems such as increasing computer processor processing delays and execution failures

Pending Publication Date: 2019-08-27
ALIBABA GRP HLDG LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This can cause execution failures and increase processing delays for computer processors

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 apparatus for processing self-modifying codes
  • Method and apparatus for processing self-modifying codes
  • Method and apparatus for processing self-modifying codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings, wherein the same numerals in different drawings indicate the same or similar elements unless otherwise stated. The implementations described in the following description of the exemplary embodiments do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention described in the appended claims.

[0018] Embodiments of the present invention provide a method and device for processing self-modifying codes. Using one embodiment of the present invention, instructions of self-modifying code may be detected from prefetched instruction data before the instruction data is forwarded for decoding and execution. As a result, the likelihood of erroneous instructions being identified and e...

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

A method of handling self-modifying codes is presented. The method is performed by computer processor and comprises: receiving a fetch block of instruction data from an instruction fetch buffer; before transmitting the fetch block of instruction data to a decoding unit of the computer processor, determining whether the fetch block includes instruction data of self-modifying codes; responsive to determining that the fetch block includes instruction data of self-modifying codes, transmitting a flush signal to reset one or more internal buffers of the computer processor.

Description

technical field [0001] The present invention relates generally to the field of computer architecture, and more particularly to methods and apparatus for handling self-modifying code. Background technique [0002] Self-modifying code may refer to a set of computer codes that modify themselves when executed by a computer processor. Self-modifying code is widely used for runtime code generation (e.g. during live writing). Self-modifying code is also widely used in embedded applications to optimize memory usage during code execution, thereby increasing code density. [0003] figure 1 An example of self-modifying code is shown. figure 1 Shown are software codes 102 and 104, each of which includes a certain number of instructions executable by a computer processor. Software codes 102 and 104 may be stored in different locations in memory. For example, software code 102 may be stored in memory at a location associated with the label "old_code" (old_code) and software code 104 ...

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): G06F9/38G06F9/30G06F9/312G06F12/00
CPCG06F9/3812G06F9/3861G06F9/3804G06F9/3802G06F9/3016G06F9/30058G06F9/30043
Inventor 蒋晓维
Owner ALIBABA GRP HLDG LTD
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