The DCode Intermediate Representation: Reference Manual and Report
user correction - Legacy Corrections
SVM HeaderParse 0.1
; Faculty of Information Technology; Queensland University of Technology; 2
SVM HeaderParse 0.2
This document describes the intermediate program representation DCode. The representation is an ASCII format which specifies instructions for an abstract stack machine. Interpretive code generators may process this file to produce object code for various target machines. The semantics of each instruction in the code is explained, and the various directives detailed. This document is intended to serve as a guide for those wishing to create new code generator backends for the existing compilers, and for those wishing to create frontends for a new language for the existing code generators. The first part of the report is a reference manual for the language. The second part describes the way in which the form is used in typical cases, and contains a number of examples. 1 The original version of this report was extracted from the report on the compiler frontend gp2d (see reference 6). This report is maintained in electronic form on ftp server ftp.fit.qut.edu.au (Internet 220.127.116.11) 2 http://www.dstc.qut.edu.au/gough Abstract Copyright This report is copyright c fl 1993--1997, Faculty of Information Technology, Queensland University of Technology. Permission is hereby given to copy, print or otherwise reproduce copies of this report for teaching or other purposes, provided that this copyright notice remains unchanged as an integral part of the document. Revision History Version 1.0, March 1993 The original document was extracted from the report on the portable Modula-2 frontend gp2d. Some additional information was added regarding the hints required by the existing backends. The remaining references to gp2d in this document may be taken as examples of typical practice by conforming frontends rather than as a statement of how things must be done. Versi...