News for hackers. Stuff that matters.
Re:Writing a C Compiler, Part 1 by meadori on Friday December 01, 2017 @11:52AM (#15825097)
> is to compile down to an emulation of a straightforward machine (I really like MSP430 for this)

What exactly do you mean by this? Direct object code emission?

> the emulator is easier than the compiler, by a lot

Yeah, definite +1 there. For most simple machines it really is not much more than a loop with a switch on the opcode where the cases update the CPU state.

Re:Writing a C Compiler, Part 1 by tptacek on Friday December 01, 2017 @11:58AM (#15825163)
Yes: just spit out opcodes.