首页>
外国专利>
Encoding machine-specific optimizations in generic byte code by using local variables as pseudo-registers
Encoding machine-specific optimizations in generic byte code by using local variables as pseudo-registers
展开▼
机译:通过使用局部变量作为伪寄存器,在通用字节码中编码特定于机器的优化
展开▼
页面导航
摘要
著录项
相似文献
摘要
A first computer system (34) compiles a source program into machine code for a register-oriented microprocessor, optimizing the global allocation of microprocessor registers in the process. It then translates the resultant code into generic-machine operand-stack-oriented code. In performing the translation, it generates code that preserves the register-oriented code's microprocessor-register allocation by filling the operand stack from local variables chosen in accordance with a predetermined correspondence between local variables and microprocessor registers. That code also stores the operand stack's contents in accordance with that same correspondence. A second computer system (32), which employs the register-oriented microprocessor, converts the resultant generic machine code into its own machine code in accordance with the same association between local variables to microprocessor registers.
展开▼