December 2021
Intermediate to advanced
494 pages
10h 52m
English
This chapter shows how to take the intermediate code from Chapter 9, Intermediate Code Generation, and generate native code. The term native refers to whatever instruction set is provided in hardware on a given machine. This chapter presents a simple native code generator for x64, the dominant architecture on laptops and desktops.
This chapter covers the following main topics:
The skills developed here include basic register allocation, instruction selection, writing assembler files, and invoking the assembler and linker to produce a native executable. ...
Read now
Unlock full access