Skip to content
0:00 / 0:00

#llvm#6502#clang

2022 EuroLLVM Dev Mtg “LLVM-MOS 6502 Backend: Having a Blast in the Past”

LLVM

18K subscribers • 18 videos on Hallway

YouTube
  • Recommended by 2 people: 1 on Lobsters and 1 in engineering communities.
  • Presented by Daniel Thornburgh
  • Linked in the descriptionSlides on llvm.org

Advanced. Deep dive for people who know the field.

10K views4 years ago2 recommendations

Systems programmingHardwareCompilers and interpretersCPUs and computer architectureRetro computing

Daniel Thornburgh explains how the LLVM-MOS project compiles C and C++ into efficient machine code for the 8-bit MOS 6502 CPU.

2022 EuroLLVM Developers' Meeting llvm.org/devmtg/2022-05/ — LLVM-MOS 6502 Backend: Having a Blast in the Past - Daniel Thornburgh, Google Slides: llvm.org/devmtg/2022-05/slides/2022EuroLLVM-LLVM-MOS-6502Bac… — LLVM-MOS is an out-of-tree Clang and LLVM backend for the MOS Technology 6502, the CPU behind the NES, Atari 2600/8-bit, BBC Micro, Commodore 64, and many more beloved devices. LLVM-MOS converts freestanding C/C++ into fairly efficient 6502 machine code, despite the 6502’s limited and heterogeneous registers, lack of stack-relative addressing modes, and 256-byte stack. This talk will explore the grab-bag of tricks that hoodwinked LLVM into supporting an almost 50-year-old architecture: "imaginary" registers, instruction set regularization, whole-program static stack allocation, and, of course, lots and lots of pseudo-instructions. — Videos Edited by Bash Films: BashFilms.com

Why it's here

2 people recommend this

What people say. Recommended as an interesting look at compiling modern languages for highly constrained 8-bit retro architectures.

xoranthon Lobsters • Recommends

EuroLLVM Dev Mtg “LLVM-MOS 6502 Backend: Having a Blast in the Past” (2022)

u/knue82in r/Compilers • Recommends

On “Why were 8-bit compilers 'distrusted' in the 80s in the industry, at least?”

Just stumbled upon this. Check it out :)