Super basic compiler design for custom ISA?

So satisfying to look at the ast of my language recently finished up the pretty printer

language design advice

Compilers Aren't Just for Programming Languages

Are there good ways to ensure that the code generated by a compiler written in a safe language is memory safe?

I Built a 64-bit VM with custom RISC architecture and compiler in Java

"The theory of parsing, translation, and compiling" by Aho and Ullman (1972) can be downloaded from ACM

Finally managed to make a compiler

Linear Scan with Lifetime Holes

Memory Management