Tomeki
Cover of Building a C-Subset Compiler for the FRISC Architecture

Building a C-Subset Compiler for the FRISC Architecture: From Formal Languages to Executable Code

By Karlo Knežević

0 (0 Ratings)
0 Want to read0 Currently reading0 Have read

Publish Date

2026-06-10

Publisher

Karlo Knežević

Language

-

Pages

-

Description:

***Building a C-Subset Compiler for the FRISC Architecture: From Formal Languages to Executable Code*** is a narrative monograph on building a complete working compiler for a deterministic ***subset of C*** targeting the ***FRISC*** educational instruction-set architecture. Rather than presenting compiler construction as a set of disconnected algorithms, the book follows one real compiler end to end: ***lexical analysis***, NFA and DFA construction, maximal-munch tokenization, ***LR(1) parsing***, ***semantic analysis***, type checking, lowering to a typed three-address ***intermediate representation***, semantics-preserving optimization, FRISC ***code generation***, runtime support, and ***simulation***. The book also explores two additional back ends for the same intermediate representation: a tree-walking interpreter and a stack-based bytecode virtual machine. It is intended for advanced students, self-taught engineers, compiler enthusiasts, and readers who want to understand how a compiler is actually built, optimized, and executed.