handouts/ho07.tex
changeset 705 bfc8703b1527
parent 692 8c7ccdebcb89
child 708 4980f421b3b0
equal deleted inserted replaced
704:6d9c960a2b26 705:bfc8703b1527
     4 \usepackage{../langs}
     4 \usepackage{../langs}
     5 \usepackage{../grammar}
     5 \usepackage{../grammar}
     6 \usepackage{../graphics}
     6 \usepackage{../graphics}
     7 
     7 
     8 
     8 
       
     9 %% add safety check on references...whether it is above 0 and below the 
       
    10 %% index
       
    11 
     9 \begin{document}
    12 \begin{document}
    10 \fnote{\copyright{} Christian Urban, King's College London, 2017, 2018, 2019}
    13 \fnote{\copyright{} Christian Urban, King's College London, 2017, 2018, 2019}
    11 
    14 
    12 \section*{Handout 7 (Compilation)}
    15 \section*{Handout 7 (Compilation)}
    13 
       
    14 
       
    15 
    16 
    16 The purpose of a compiler is to transform a program a human can read and
    17 The purpose of a compiler is to transform a program a human can read and
    17 write into code the machine can run as fast as possible. The fastest
    18 write into code the machine can run as fast as possible. The fastest
    18 code would be machine code the CPU can run directly, but it is often
    19 code would be machine code the CPU can run directly, but it is often
    19 good enough for improving the speed of a program to target a
    20 good enough for improving the speed of a program to target a