~/talk

Tales of C, the 6502 and the BBC (with added python)

Talkat ACCU 2018 · 2018-04-11..04-14· [compilers-and-language-design, python]
links:none on file
slides:none on file

Build claim: a working C compiler in python that emits native 6502 assembly for the BBC Micro, limited to simple C (no structs/unions/array init) and 16‑bit integers. Tools: a Python lexer/parser producing a 670‑node AST, an IR and register/stack codegen. Surprises: the 6502 has ~53 opcodes and needs a custom stack for pointer‑relative addressing, plus a hand‑rolled 16‑bit multiply. Outcome: compiler compiles to disk and can just‑in‑time compile and run on a real BBC Micro via SSH; recursion and basic globals work.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20Acorn Proton
  3. 2:54Assembly
  4. 9:04Demo
  5. 14:30Questions
~/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.