2008Jisuanji gongchengRequires access

Self-modifying Code Implementation on Godson-X

Hao Zhang, Xuehai Qian

Open publisher page 0 citations

Abstract

The act of a processor writing data into a currently executing code segment with the intent of executing that data as code is called self-modifying code. As processor architectures become more complex and start to speculatively execute code ahead of the retirement point, the rules regarding which code should execute, preor post-modification, become blurred. Although SMC seldom happens in current normal applications, it is necessary to handle this situation for programs with SMC. This paper analyses several methods for SMC handling, and gives a facile method that can be easily implemented. This method has been implemented on Godson-X processor model.

About this research paper

What this paper is about

The act of a processor writing data into a currently executing code segment with the intent of executing that data as code is called self-modifying code. As processor architectures become more complex and start to speculatively execute code ahead of the retirement point, the rules regarding which code should execute, preor post-modification, become blurred. Although SMC seldom happens in current normal applications, it is necessary to handle this situation for programs with SMC. This paper analyses several methods for SMC handling, and gives a facile method that can be easily implemented. This method has been implemented on Godson-X processor model.

Why it matters

A significance statement is not available in the OpenAlex record.

Key contribution

A contribution statement is not available in the OpenAlex record.

Method / approach

Method details are not available in the OpenAlex metadata.

Main findings

Findings are not separately available in the OpenAlex metadata.

Limitations

Limitations are not available in the OpenAlex metadata.

Applications

Application details are not available in the OpenAlex metadata.

Available abstract

The act of a processor writing data into a currently executing code segment with the intent of executing that data as code is called self-modifying code. As processor architectures become more complex and start to speculatively execute code ahead of the retirement point, the rules regarding which code should execute, preor post-modification, become blurred. Although SMC seldom happens in current normal applications, it is necessary to handle this situation for programs with SMC. This paper analyses several methods for SMC handling, and gives a facile method that can be easily implemented. This method has been implemented on Godson-X processor model.

Key concepts: Computer science, Code (set theory), Point (geometry), Parallel computing, Program code, Programming language, Embedded system, Set (abstract data type)

Related papers

Back to paper searchBrowse research topicsOriginal source
Self-modifying Code Implementation on Godson-X — Research Paper | ScholarLens