liushuyu/lat — explained in plain English
Analysis updated 2026-07-08 · repo last pushed 2025-04-22
Run legacy x86 business applications on Loongson-based servers.
Expand app compatibility for a Linux distribution running on LoongArch hardware.
Migrate existing Intel/AMD software to domestic Loongson machines without rewriting it.
| liushuyu/lat | daviddrysdale/pkcs11test | deftruth/mnn | |
|---|---|---|---|
| Language | C++ | C++ | C++ |
| Last pushed | 2025-04-22 | 2023-01-18 | 2023-04-29 |
| Maintenance | Stale | Dormant | Dormant |
| Setup difficulty | hard | moderate | moderate |
| Complexity | 4/5 | 4/5 | 4/5 |
| Audience | ops devops | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Loongson LoongArch hardware and a custom build of QEMU 6 from source with C++ toolchain configured for cross-architecture translation.
LATX is a translation tool that lets 32-bit and 64-bit x86 applications run on LoongArch (Loongson) processors. In practical terms, if you have software built for standard Intel or AMD computers and need it to work on a Loongson-based machine, this project makes that possible with better performance than generic emulators provide. At its core, it builds on QEMU 6, an open-source emulator, but applies deep optimizations specific to Loongson's architecture. It translates x86 instructions into native LoongArch instructions using two main techniques: ahead-of-time pre-compilation (which converts code before it runs, reducing overhead) and "library passthrough," a method borrowed from the box64 project that lets translated programs call certain system libraries directly instead of translating every library call. It also takes advantage of LoongArch's hardware extensions, like vector and binary translation instructions, to speed things up further. The primary users are organizations or individuals running Loongson hardware who need access to the existing x86 software ecosystem. For example, a company that has migrated to domestic Loongson servers but still relies on legacy x86 business applications, or a Linux distribution maintainer on LoongArch who wants to offer broader app compatibility. The project entered its release candidate stage in 2024, following several years of development that began in 2021. The project is notable for how heavily it customizes its QEMU foundation rather than using it as-is. The team has invested in instruction-level optimizations like flag reduction, register handling improvements, and semantic-level instruction pattern matching. The codebase organizes translation through two intermediate representations, one for x86 instructions and one for LoongArch, with optimization passes at each layer. The repository itself compresses nearly 2,000 development commits into a single commit for historical clarity, and future plans include supporting more advanced x86 instruction set extensions like AVX and building performance profiling tools.
LATX is a fast translation tool that lets standard x86 Intel/AMD applications run on Loongson LoongArch processors, using deep optimizations on top of QEMU for better performance than generic emulators.
Mainly C++. The stack also includes C++, QEMU, LoongArch.
Stale — no commits in 1-2 years (last push 2025-04-22).
The explanation does not specify a license for this project.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly ops devops.
This repo across BitVibe Labs
Verify against the repo before relying on details.