From CISC to RISC: language-model guided assembly transpilation
Ahmed Heakl, Chaimaa Abi, Rania Hossam, Abdulrahman Mahmoud

TL;DR
This paper presents CRT, a lightweight LLM-based assembler transpiler that converts x86 CISC assembly to ARM RISC assembly, improving cross-architecture compatibility, performance, and efficiency with high accuracy and practical deployment results.
Contribution
CRT is the first LLM-based tool that effectively bridges x86 and ARM architectures, enabling accurate and optimized assembly translation across diverse platforms.
Findings
Achieves 79.25% accuracy from x86 to ARMv5
Achieves 88.68% accuracy from x86 to RISC-V
Provides 1.73× speedup and 2.41× memory efficiency on Apple M2
Abstract
The transition from x86 to ARM architecture is becoming increasingly common across various domains, primarily driven by ARM's energy efficiency and improved performance across traditional sectors. However, this ISA shift poses significant challenges, mainly due to the extensive legacy ecosystem of x86 software and lack of portability across proprietary ecosystems and software stacks. This paper introduces CRT, a lightweight LLM-based transpiler that automatically converts x86 assembly to ARM assembly. Our approach bridges the fundamental architectural gap between x86's CISC-based and ARM's RISC-based computing paradigms while preserving program semantics and optimizing performance. We evaluate CRT on diverse real-world applications, achieving 79.25% translation accuracy from x86 to ARMv5 on our comprehensive test suite, and an 88.68% accuracy from x86 to RISC-V. In practical deployments…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗ahmedheakl/asm2asm-deepseek1.3b-xtokenizer-armmodel· 51 dl· ♡ 151 dl♡ 1
- 🤗ahmedheakl/asm2asm-deepseek1.3b-xtokenizer-armv8model· 25 dl25 dl
- 🤗ahmedheakl/asm2asm-deepseek1.3b-riscmodel· 7 dl7 dl
- 🤗ahmedheakl/asm2asm-deepseek1.3b-arm-xtokenizer-q5model· 25 dl25 dl
- 🤗ahmedheakl/asm2asm-deepseek1.3b-arm-xtokenizer-q8_0model· 9 dl9 dl
- 🤗RichardErkhov/ahmedheakl_-_asm2asm-deepseek1.3b-xtokenizer-arm-4bitsmodel
- 🤗RichardErkhov/ahmedheakl_-_asm2asm-deepseek1.3b-xtokenizer-arm-8bitsmodel
- 🤗RichardErkhov/ahmedheakl_-_asm2asm-deepseek1.3b-xtokenizer-arm-awqmodel· 1 dl1 dl
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsModular Robots and Swarm Intelligence · Model-Driven Software Engineering Techniques · Manufacturing Process and Optimization
