An anomaly in an interpreter using GCC source-code-level register allocation

  • Authors:
  • Ting-Wei Hou;Fuh-Gwo Chen

  • Affiliations:
  • National Cheng Kung University, Tainan City, Taiwan, R.O.C.;National Cheng Kung University, Tainan City, Taiwan, R.O.C.

  • Venue:
  • ACM SIGPLAN Notices
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

An anomaly of unexpected performance in an interpreter whose frequently accessed variables are manually assigned to hard registers by GCC source-code-level register allocation is presented. A hard-registered virtual program counter and stack pointer as well as a byte-code translation are experimented on both register-rich PowerPC and register-limited Intel x86. According to the study of the anomaly, a hard register should not be assigned singly to a variable in an interpreter due to higher register pressure.