Developing a Modular Compiler for a Subset of a C-like Language

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Dutta, Debasish, Sonowal, Neeharika, Hazarika, Irani
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909452115902464
author Dutta, Debasish
Sonowal, Neeharika
Hazarika, Irani
author_facet Dutta, Debasish
Sonowal, Neeharika
Hazarika, Irani
contents The paper introduces the development of a modular compiler for a subset of a C-like language, which addresses the challenges in constructing a compiler for high-level languages. This modular approach will allow developers to modify a language by adding or removing subsets as required, resulting in a minimal and memory-efficient compiler. The development process is divided into small, incremental steps, where each step yields a fully functioning compiler for an expanding subset of the language. The paper outlines the iterative developmental phase of the compiler, emphasizing progressive enhancements in capabilities and functionality. Adherence to industry best practices of modular design, code reusability, and documentation has enabled the resulting compiler's functional efficiency, maintainability, and extensibility. The compiler proved to be effective not only in managing the language structure but also in developing optimized code, which demonstrates its practical usability. This was also further assessed using the compiler on a tiny memory-deficient single-board computer, again showing the compiler's efficiency and suitability for resource-constrained devices.
format Preprint
id arxiv_https___arxiv_org_abs_2501_04503
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Developing a Modular Compiler for a Subset of a C-like Language
Dutta, Debasish
Sonowal, Neeharika
Hazarika, Irani
Programming Languages
Computation and Language
Distributed, Parallel, and Cluster Computing
Performance
The paper introduces the development of a modular compiler for a subset of a C-like language, which addresses the challenges in constructing a compiler for high-level languages. This modular approach will allow developers to modify a language by adding or removing subsets as required, resulting in a minimal and memory-efficient compiler. The development process is divided into small, incremental steps, where each step yields a fully functioning compiler for an expanding subset of the language. The paper outlines the iterative developmental phase of the compiler, emphasizing progressive enhancements in capabilities and functionality. Adherence to industry best practices of modular design, code reusability, and documentation has enabled the resulting compiler's functional efficiency, maintainability, and extensibility. The compiler proved to be effective not only in managing the language structure but also in developing optimized code, which demonstrates its practical usability. This was also further assessed using the compiler on a tiny memory-deficient single-board computer, again showing the compiler's efficiency and suitability for resource-constrained devices.
title Developing a Modular Compiler for a Subset of a C-like Language
topic Programming Languages
Computation and Language
Distributed, Parallel, and Cluster Computing
Performance
url https://arxiv.org/abs/2501.04503