Fantastic, *accessible* introduction to compiler writing https://hokstad.com/compiler (uses GCC to work out what the assembly should look like)