~/talk

“Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17”

Talkat CppCon 2016 · 2016-09-18..09-23· [compilers-and-language-design]
slides:none on file

Uses C++17 and Compiler Explorer to compile idiomatic C++ into 386 assembly then translate that into 6510/6502 code with an x86-to-6502 reassembler, building a complete Pong: ball, two paddles, sprites and joystick input. The compiled game is tiny (about 105 bytes), the 6502 output is ~419 instructions (x86 ~231), sprite generation is a 64‑deep constexpr recursion with 505 parameters, and the program runs on a real Commodore 64 via SD2IEC—Pong actually works.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 3:48Hardware and environment
  3. 9:09Memory-mapped I/O basics
  4. 13:21Abstractions and performance
  5. 19:08Working with colors
  6. 24:14Compile-time optimization
  7. 30:12Joystick and user input
  8. 35:30RAII for game logic
  9. 43:31Sprite management
  10. 52:58Final game implementation
  11. 1:01:46Live hardware demonstration
  12. 1:06:41Summary and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.