Appendix A. ILOC

Chapter Overview

iloc is the assembly code for a simple abstract machine. It was originally designed as a low-level, linear ir for use in an optimizing compiler. We use it throughout the book as an example ir. We also use it as a simplified target language in the chapters that discuss code generation. This appendix serves as a reference on iloc.
Keywords: Intermediate Representation, Three-Address Code, iloc

A.1. Introduction

iloc is the linear assembly code for a simple abstract risc machine. The iloc used in this book is a simplified version of the intermediate representation that was used in the Massively Scalar Compiler Project at Rice University. For example, iloc as presented here assumes one generic data type, an integer without ...

Get Engineering a Compiler, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.