A method and system for reducing the number of assembly instructions included in a computer program
user-5da94be2530c70bec9509099(2015)
摘要
One embodiment of the present invention sets forth a technique for extracting a memory address offset from a 64-bit type-conversion expression included in high-level source code of a computer program. The technique involves receiving the 64-bit type-conversion expression, where the 64-bit type-conversion expression includes one or more 32-bit expressions, determining a range for each of the one or more 32-bit expressions, calculating a total range by summing the ranges of the 32-bit expressions, determining that the total range is a subset of a range for a 32-bit unsigned integer, calculating the memory address offset based on the ranges for the one or more 32-bit expressions, and generating at least one assembly-level instruction that references the memory address offset.
更多查看译文
关键词
Memory address,Offset (computer science),Source code,Computer program,Expression (mathematics),Arithmetic,Computer science,Unsigned integer
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络