\documentclass{article}\usepackage{../style}\usepackage{../langs}\begin{document}\section*{Handout 7 (Compilation)}The purpose of a compiler is to transform a program, a humancan write, into code the machine can run as fast as possible.The fastest code would be machine code the CPU can rundirectly, but it is often enough to improve the speed of aprogram by just targeting a virtual machine. This produces notthe fastest possible code, but code that is fast enough andhas the advantage that the virtual machine care of things acompiler would normally need to take care of (like explicitmemory management).We will be generating code for the Java Virtual Machine. Thisis a stack-based virtual machine which will make it easy togenerate code for arithmetic expressions. Recallthat our\end{document}%%% Local Variables: %%% mode: latex %%% TeX-master: t%%% End: