3 ms·
Ideally, you'd emit LLVM IR or some similar bytecode or assembly. Then you'd use llc/opt or an appropriate assmebler to get an executable. Trying to emit machi
by fooker 6y ago
Ideally, you'd emit LLVM IR or some similar bytecode or assembly. Then you'd use llc/opt or an appropriate assmebler to get an executable.
Trying to emit machine code isn't too interesting when you're writing your first compiler.
- CalChris 6y agoSimilarly, trying to parse C++ isn't too interesting when you're writing your first backend.