| dc.contributor.advisor | Shankar, Priti | |
| dc.contributor.author | Rai, siddhartha | |
| dc.date.accessioned | 2025-10-30T10:57:40Z | |
| dc.date.available | 2025-10-30T10:57:40Z | |
| dc.date.submitted | 2000 | |
| dc.identifier.uri | https://etd.iisc.ac.in/handle/2005/7284 | |
| dc.description.abstract | We 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.iso | en_US | |
| dc.relation.ispartofseries | T04807 | |
| dc.rights | I 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.subject | Statistical Modeling for Compression | |
| dc.subject | Eager Code Generation Strategy | |
| dc.subject | Tree Intermediate Code | |
| dc.title | Formal Models for Code Generation and Code Compression | |
| dc.degree.name | MSc Engg | |
| dc.degree.level | Masters | |
| dc.degree.grantor | Indian Institute of Science | |
| dc.degree.discipline | Engineering | |