JOURNAL ARTICLE

"A Multi-Pass Compiler with Code Optimized Abstract Syntax Tree"

Mba Obasi OdimSamson AreketeBosede OguntundeA Lawal

Year: 2023 Journal:   International Journal of Software & Hardware Research in Engineering Vol: 11 (5)

Abstract

This study proposes a multi-pass compiler with code optimized abstract syntax tree based on a subset of C# as the source and C constructs as the target, with the view to enhancing the understanding of compiler design, which conceptually has been a rather difficult discourse.A single-pass compiler allows a single traversal over the source code or intermediate form.This does not allow for a distributed compilation and modular development.On the other hand, the proposed scheme decouples the type-checker from the abstract syntax tree, thus separating them into independent segments that allows a multi-pass over the source code; this in turn provides a mechanism for modular development, which encourages distributed compilation.The proposed scheme constructs the abstract syntax tree before the typechecking, thus allowing another tranversal on the intermediate form of the source code.An optimised tree was constructed after code optimisation had been conducted.The scheme is based on only small subset of C# constructs.Further study would be focused on adding more constructs.

Keywords:
Compiler Programming language Abstract syntax tree Computer science Syntax Code (set theory) Tree (set theory) Parallel computing Parsing Natural language processing Mathematics

Metrics

1
Cited By
0.48
FWCI (Field Weighted Citation Impact)
14
Refs
0.48
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Parallel Computing and Optimization Techniques
Physical Sciences →  Computer Science →  Hardware and Architecture
Evolutionary Algorithms and Applications
Physical Sciences →  Computer Science →  Artificial Intelligence
Logic, programming, and type systems
Physical Sciences →  Computer Science →  Artificial Intelligence
© 2026 ScienceGate Book Chapters — All rights reserved.