Legacy software

On this page 7

Legacy software is an application that remains in active use even though it was built for an older operating system, processor architecture or runtime that is no longer current or supported. In OS compatibility, the term describes the programs that newer operating systems must still accommodate, and the techniques used to keep them running.

Software becomes legacy not because it stops working, but because the world around it changes: the vendor stops updates, the original developers move on, or the operating system drops an interface the program depends on. Organizations keep such programs because they still perform business-critical functions and replacing them is costly or risky.

Why software becomes legacy

A program turns into legacy software when one or more of its dependencies disappear or become unsafe. The code itself does not age, but the platform underneath it does, and each change narrows the set of systems on which it can run reliably.

TriggerWhat changesTypical consequence
End of vendor supportNo more patches or fixesUnpatched vulnerabilities accumulate
Removed operating system interfacesOld APIs or subsystems are droppedProgram fails to start or crashes
Architecture transition16-bit to 32-bit, 32-bit to 64-bit, x86 to ARMBinaries need translation or porting
Driver model changesOld kernel drivers are rejectedAttached hardware stops working
Lost source code or skillsNo one can modify the programChanges become impractical
Common triggers that make software legacy

A well-known example of an interface removal is 16-bit application support: 64-bit editions of Windows cannot run 16-bit programs natively, so software written for early Windows or MS-DOS needs emulation or a virtual machine on modern hardware. Similar breaks occurred when macOS dropped 32-bit application support and when Apple moved from Intel to its own ARM-based chips.

How operating systems keep legacy software running

Operating systems use a ladder of compatibility techniques, from lightweight shims to full hardware emulation. The lighter the technique, the better the performance, but the narrower the range of programs it can rescue.

TechniqueHow it worksPerformance cost
Compatibility modeOS imitates an older version’s behavior for one programNegligible
Compatibility layerTranslates system calls of another OSLow to moderate
Binary translationConverts machine code for a different CPUModerate; often cached ahead of time
Virtual machineRuns a complete older OS on virtual hardwareModerate; needs a licensed old OS
Full emulationSimulates the original hardware in softwareHigh, but most faithful
Compatibility techniques compared

Windows, for example, applies application compatibility shims that intercept specific API calls and return the answers an older program expects, such as a fake version number. Compatibility layers such as Wine and Proton go further by implementing another operating system’s interfaces, while binary translators convert instructions from one instruction set architecture to another.

Legacy software is the problem, while most neighboring terms in OS compatibility are solutions or constraints. Keeping them distinct helps when planning a migration.

  • A 32-bit application may or may not be legacy; it becomes legacy when the platform drops 32-bit support.
  • Software porting rewrites or recompiles the program for a new platform, which ends its legacy status instead of working around it.
  • Emulation and dual boot keep the old environment available, but the program itself stays unchanged.
  • System requirements and the application binary interface describe what the program needs; legacy status arises when the current platform no longer provides it.

The term overlaps with legacy system, which usually refers to a whole combination of software, hardware and data, such as an old mainframe application with its terminals. Legacy software is the narrower, program-level concept.

Choosing a strategy for a legacy program

The right strategy depends on how critical the program is, how exposed it is to networks and whether its vendor or source code still exists. A decision made only on cost tends to underestimate security risk.

SituationRecommended approachReason
Runs with minor glitches on a new OSCompatibility mode or shimsCheapest fix with little risk
Needs an unsupported OSIsolated virtual machineContains risk while preserving function
Source code availablePort or recompileRemoves the dependency for good
Vendor offers a successorMigrate data and retireRestores support and patches
Controls specialized hardwareDedicated, offline machineOld drivers cannot be replaced easily
Decision guide for legacy software

Whatever the choice, it helps to keep an inventory of legacy programs, their dependencies, their data formats and the people who know how to operate them. That knowledge tends to disappear faster than the software itself.

Risks and common mistakes

The largest risk is security exposure. Software that no longer receives patches often depends on outdated protocols, weak encryption or old runtime libraries, and it may require running on an unsupported operating system that attackers know well.

  • Connecting an unsupported OS directly to the internet to keep one old program working.
  • Granting administrator rights because the program writes to protected folders; a compatibility fix or file permission change is usually safer.
  • Ignoring data formats: even if the program is retired, its files must stay readable or be converted.
  • Postponing migration indefinitely, until the last machine that can run the program fails.

A more subtle pitfall is assuming that a program running under emulation behaves exactly as before. Timing, printing, file locking and date handling can differ in subtle ways, so critical outputs should be verified after any change of platform.

In plain words

Legacy software is an old program that people still rely on, even though the computers and systems around it have moved on. It is a bit like a favorite cassette tape: the music is still good, but you need an old player, an adapter or a converted copy to listen to it today.

Computers use similar tricks. They pretend to be an older system, run a small copy of the old system inside the new one, or translate the program as it runs. Each trick keeps the program alive, but none of them makes it new again.

A real-world example

A small manufacturing company uses a measurement program written about twenty years ago for a 32-bit version of Windows. It controls a calibration device through a serial port, and the vendor no longer exists. When the old office computer starts failing, the company must move the program to new hardware.

The program installs on a current 64-bit Windows system and starts in compatibility mode, but the device driver is rejected. The technician therefore sets up a virtual machine with the older Windows version, passes a USB-to-serial adapter through to it and disconnects the virtual machine from the network. The calibration work continues on modern hardware, the unsupported system stays isolated, and the company gains time to plan a supported replacement.