Show simple item record

dc.contributor.advisorShankar, Priti
dc.contributor.authorRai, siddhartha
dc.date.accessioned2025-10-30T10:57:40Z
dc.date.available2025-10-30T10:57:40Z
dc.date.submitted2000
dc.identifier.urihttps://etd.iisc.ac.in/handle/2005/7284
dc.description.abstractWe propose formal models for the problems of target code generation and compression of tree intermediate code. For the first problem, we adapt an existing model to work for prefix linearizations of intermediate tree code. Experiments have been carried out to generate tables from instruction set grammars for two machines. We have also proposed and implemented an algorithm that tests a machine grammar to check whether code generation can be performed in a single pass. For grammars where this is not possible, we propose an eager code generation strategy, which generates code for a subtree as soon as disambiguation becomes possible. For the second problem, we use the same model in a statistical modeling scheme for compression of code. Since the model is static and grammar-based, it can be used in conjunction with a dynamic context model to make refined estimates of the probability distribution of input symbols. Two features distinguish our model from those previously used for code compression: Its ability to compactly encode both proximal and distant context, allowing for accurate prediction of input symbols. The use of a uniform approach to efficiently handle both operators and semantic attributes of variables that appear in the code. Experiments on tree intermediate code indicate that this scheme outperforms standard text compression schemes like gzip and bzip2 for this specialized application, for both small and large files. Also, assuming that the intermediate code has an underlying grammar known to both the sender and the receiver, no information other than the compressed file needs to be transmitted.
dc.language.isoen_US
dc.relation.ispartofseriesT04807
dc.rightsI grant Indian Institute of Science the right to archive and to make available my thesis or dissertation in whole or in part in all forms of media, now hereafter known. I retain all proprietary rights, such as patent rights. I also retain the right to use in future works (such as articles or books) all or part of this thesis or dissertation
dc.subjectStatistical Modeling for Compression
dc.subjectEager Code Generation Strategy
dc.subjectTree Intermediate Code
dc.titleFormal Models for Code Generation and Code Compression
dc.degree.nameMSc Engg
dc.degree.levelMasters
dc.degree.grantorIndian Institute of Science
dc.degree.disciplineEngineering


Files in this item

This item appears in the following Collection(s)

Show simple item record