Self-modifying Code Implementation on Godson-X
Hao Zhang, Xuehai Qian
Abstract
Hao Zhang, Xuehai Qian
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.
A significance statement is not available in the OpenAlex record.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
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)