Is it easier to make an LLVM back-end or an LLVM IR parser for a VM?

by Nergal   Last Updated August 01, 2018 00:05 AM

I made a VM that has a generic (enough) ISA and I need a compiler system to target it.

Is it easier and more efficient in the end to simply make an LLVM Backend that targets my VM's asm language (or directly make VM bytecode) or create an LLVM IR parser to generate my VM's asm language?



Related Questions


Which compiler back end to use?

Updated July 11, 2018 15:05 PM

Generating assembly in compilers

Updated March 26, 2018 17:05 PM