English

A Simple, Linear-Time Algorithm for x86 Jump Encoding

Programming Languages 2009-09-29 v1

Abstract

The problem of space-optimal jump encoding in the x86 instruction set, also known as branch displacement optimization, is described, and a linear-time algorithm is given that uses no complicated data structures, no recursion, and no randomization. The only assumption is that there are no array declarations whose size depends on the negative of the size of a section of code (Hyde 2006), which is reasonable for real code.

Keywords

Cite

@article{arxiv.0812.4973,
  title  = {A Simple, Linear-Time Algorithm for x86 Jump Encoding},
  author = {Neil G. Dickson},
  journal= {arXiv preprint arXiv:0812.4973},
  year   = {2009}
}

Comments

5 pages

R2 v1 2026-06-21T11:56:27.395Z