首页>
外国专利>
method and arrangement for the early insert assembly language code generation macros for optimization
method and arrangement for the early insert assembly language code generation macros for optimization
展开▼
机译:早期插入汇编语言代码生成宏以进行优化的方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
Small assembly code routines are inlined with source code (10) prior to optimization processing in a compiler (12) in a data processing system (100). Each assembly code routine is presented to the compiler (12) in the form of a template (18) having instructions and operands. Whenever a call to the template (18) is detected by the compiler (12), the instructions and operands of the template (18) are examined by the compiler (12) to determine whether all instructions and operands in the template are recognizable by the compiler (12) for optimization processing. If so, the assembly code template (18) is virtualized by transforming physical registers to virtual registers, and the intermediate code form of the template (18) is combined with the intermediate code form of the source code (10). This combined code is then subjected to optimization procedures in the compiler (12), and the result is used to generate the assembly code (14). The assembly code from any template (18) not eligible for early inlining is later inlined with the assembly code generated by the compiler (12) after the optimization processing. IMAGE
展开▼