Code Generation for a One-Register Machine

John Bruno, Ravi Sethi

Research output: Contribution to journalArticle

49 Scopus citations

Abstract

The majority of computers that have been built have performed all computations in devices called accumulators, or registers. In this paper, it is shown that the problem of generating minimal-length code for such machines is hard in a precise sense; specifically it is shown that the problem is NP-complete. The result is true even when the programs being translated are arithmetic expressions. Admittedly, the expressions in question can become complicated.

Original languageEnglish (US)
Pages (from-to)502-510
Number of pages9
JournalJournal of the ACM (JACM)
Volume23
Issue number3
DOIs
StatePublished - Jul 1 1976
Externally publishedYes

Keywords

  • arithmetic expressions
  • basic blocks
  • code optimization
  • NP-complete
  • register allocation
  • straight line programs

ASJC Scopus subject areas

  • Software
  • Control and Systems Engineering
  • Information Systems
  • Hardware and Architecture
  • Artificial Intelligence

Fingerprint Dive into the research topics of 'Code Generation for a One-Register Machine'. Together they form a unique fingerprint.

  • Cite this