Hacker News new | past | comments | ask | show | jobs | submit login

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.




Similarly, trying to parse C++ isn't too interesting when you're writing your first backend.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: