Please use this identifier to cite or link to this item: http://localhost:8081/xmlui/handle/123456789/9216
Title: CONSTRUCTION OF COMPILER FOR A PASCAL SUBSET UNDER UNIX ENVIRONMENT
Authors: Sridhar, S. Sai
Keywords: ELECTRONICS AND COMPUTER ENGINEERING;CONSTRUCTION COMPILER;PASCAL SUBSET;UNIX ENVIRONMENT
Issue Date: 1990
Abstract: A compiler for a Pascal subset is constructed using the language development tools--lex. vacc and make, available on the UNIX system. It generates target code in M68020 assembly language for a given source program. This work is divided into four modules. 1.Lexical analyzer 2.Parser 3.Error handler and Intermediate code generator 4.Optimizer and code generator. Lexical analyzer is generated by giving a set of regualr expressions as input to Lex. Each regular expression is associated with an action routine for installing lexemes in Symbol and Literal tables. The grammar for the Pascal subset is written and given as input to Yacc, which in turn generates a parser. Error handler and intermediate code generator are implemented by incorporating appropriate action program segments in the grammar rules using Syntax Directed Translation. An attempt is made to optimize the intermediate code represented in indirect triples, and M68020 assembly code is generated with reasonable efficiency.
URI: http://hdl.handle.net/123456789/9216
Other Identifiers: M.Tech
Research Supervisor/ Guide: Subrahmanyam, K.
metadata.dc.type: M.Tech Dessertation
Appears in Collections:MASTERS' THESES (E & C)

Files in This Item:
File Description SizeFormat 
ECD245378.pdf4.17 MBAdobe PDFView/Open


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.