encyclopegia.org

Dynamic recompilation

In computer science, dynamic recompilation is a feature of some emulators and virtual machines, where the system may recompile some part of a program during execution.[src] By compiling during execution, the system can tailor the generated code to reflect the program's run-time environment, and potentially produce more efficient code by exploiting information that is not available to a traditional static compiler.[src]

In computer science, dynamic recompilation is a feature of some emulators and virtual machines, where the system may recompile some part of a program during execution.[src] By compiling during execution, the system can tailor the generated code to reflect the program's run-time environment, and potentially produce more efficient code by exploiting information that is not available to a traditional static compiler.[src] ==Uses== Most dynamic recompilers are used to convert machine code between architectures at runtime.[src] This is a task often needed in the emulation of legacy gaming platforms.[src] In other cases, a system may employ dynamic recompilation as part of an adaptive optimization strategy to execute a portable program representation such as Java or .NET Common Language Runtime bytecodes.[src] Full-speed debuggers also utilize dynamic recompilation to reduce the space overhead incurred in most deoptimization techniques, and other features such as dynamic thread migration.[src] ==Tasks== The main tasks a dynamic recompiler has to perform are: Reading in machine code from the source platform Emitting machine code for the target platform A dynamic recompiler may also perform some auxiliary tasks: Managing a cache of recompiled code Updating of elapsed cycle counts on platforms with cycle count registers Management of interrupt checking Providing an interface to virtualized support hardware, for example a GPU Optimizing higher-level code structures to run efficiently on the target hardware (see below) ==Applications== Many Java virtual machines feature dynamic recompilation.[src] Apple's Rosetta for Mac OS X on x86, allows PowerPC code to be run on the x86 architecture.[src] Later versions of the Mac 68K emulator used in classic Mac OS to run 680x0 code on the PowerPC hardware.[src] Psyco, a specializing compiler for Python.[src] The HP Dynamo project, an example of a transparent binary dynamic optimizer.[src] DynamoRIO, an open-source successor to Dynamo that works with the ARM, x86-64 and IA-64 (Itanium) instruction sets.[src] The Vx32 virtual machine employs dynamic recompilation to create OS-independent x86 architecture sandboxes for safe application plugins.[src] Microsoft Virtual PC for Mac, used to run x86 code on PowerPC.[src] FreeKEYB, an international DOS keyboard and console driver with many usability enhancements utilized self-modifying code and dynamic dead-code elimination to minimize its in-memory image based on its user configuration (selected features, languages, layouts) and actual runtime environment (OS variant and version, loaded drivers, underlying hardware), automatically resolving dependencies, dynamically relocating and recombining code sections on byte-level granularity and optimizing opstrings based on semantic information provided in the source code, relocation information generated by special tools during assembly and profile information obtained at load time.[src] The backwards compatibility functionality of the Xbox 360 (i.e.[src] running games written for the original Xbox) is widely assumed to use dynamic recompilation.[src] Apple's Rosetta 2 for Apple silicon, permits many applications compiled for x86-64-based processors to be translated for execution on Apple silicon.[src] QEMU ===Emulators=== PCSX2, a PlayStation 2 emulator, has a recompiler called "microVU", the successor of "SuperVU".[src] GCemu, a GameCube emulator.[src] GEM, a Game Boy emulator for MSX uses an optimizing dynamic recompiler.[src] DeSmuME, a Nintendo DS emulator, has a dynarec option.[src] Soywiz's Psp, a PlayStation Portable emulator, has a dynarec option.[src] Mupen64Plus, a multi-platform Nintendo 64 emulator.[src] Yabause, a multi-platform Saturn emulator.[src] PPSSPP, a multi-platform PlayStation Portable emulator, uses a JIT dynamic recompiler by default.[src] PCem, an emulator for old pc platforms which can be used on Windows and Linux.[src] It uses the recompiler to translate legacy cpu calls to modern cpu instructions and to gain some speed in emulation overall.[src] 86Box, a fork of PCem with the goal of a more accurate emulation.[src] It is using the recompiler for the same purpose.[src] ==See also== Binary recompiler Binary translation Comparison of platform virtualization software Just-in-time compilation Instrumentation (computer programming) ==References== ==External links== Dynamic recompiler tutorial.[src] Archive at the Wayback Machine (archived ).[src] Blog posts about writing a MIPS to PPC dynamic recompiler.[src]

35 sentences · 35 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Dynamic recompilation." encyclopegia.org, 2026, https://encyclopegia.org/wiki/dynamic-recompilation. Accessed 29 November 2026.

Chicago

"Dynamic recompilation." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/dynamic-recompilation.

APA

encyclopegia.org. (2026). Dynamic recompilation. Retrieved November 29, 2026, from https://encyclopegia.org/wiki/dynamic-recompilation

Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Dynamic Host Configuration Protocol

stub · references available

dynamic passenger information

stub · references available

Panhard & Levassor Dynamic

stub · references available

dynamic verb

stub · references available

dynamic nuclear polarisation

stub · references available

Dynamic scattering mode

stub · references available

dynamic parameter

stub · references available

dynamic programming language

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1356551280 · 0.5 · snapshot enwiki-001356551280

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.