miniblog.
← Back to all posts
Jul 24, 2014 at 07:13
.@andreassavvides I've been writing a C compiler and I recall you wrote one. What resources did you use and how much work was it?
Wilfred Hughes
Related Posts
Jan 18, 2021 at 01:28
3
One thing I've learnt from writing a toy compiler is that this instruction usually means you have a bug: add %al,(%rax) This is the instruction encoding of all zeroes. It means you've jumped to the wrong place, or screwed up the size of an operand.
Wilfred Hughes
Shared words: writing, compiler, one Score: 32
Feb 24, 2016 at 12:03
Fantastic, *accessible* introduction to compiler writing
https://hokstad.com/compiler
(uses GCC to work out what the assembly should look like)
Writing a compiler in Ruby, bottom up
hokstad.com/compiler
Wilfred Hughes
Shared words: writing, compiler, work Score: 31.2
Dec 21, 2015 at 22:40
I keep writing compiler unit tests that work locally, but fail on other architectures. Argh. Maybe I should emulate on Travis.
Wilfred Hughes
Shared words: writing, compiler, work Score: 31.2