Details

Prevajalnik za podmnožico jezika C
ID Cifer, Nejc (Author), ID Slivnik, Boštjan (Mentor) More about this mentor... This link opens in a new window

.pdfPDF - Presentation file, Download (251,17 KB)
MD5: 49D435A91C3AEE4AE6858397CD0B656D

Abstract
V diplomski nalogi je predstavljen razvoj prevajalnika za podmnožico programskega jezika C, pri čemer je ciljna arhitektura ARM. Prevajalnik je zasnovan tako, da iz vhodne izvorne kode v jeziku C ustvari zbirno kodo za 32-bitno ARM arhitekturo. Podprtih je večina elementov jezika C, ki so definirani v standardu ANSI C. V nalogi so podrobno opisani vsi glavni gradniki prevajalnika, vključno z leksikalno, sintaksno in semantično analizo ter generiranjem vmesne in zbirne kode. Poseben poudarek je namenjen pravilnemu prevajanju konstrukcij v zbirni jezik ARM, ob upoštevanju značilnosti arhitekture, kot sta omejeno število registrov in način naslavljanja pomnilnika. Na koncu naloge so predstavljeni primeri prevedenih programov in rezultati testiranja delovanja prevajalnika.

Language:Slovenian
Keywords:prevajalnik, C, ARM
Work type:Bachelor thesis/paper
Typology:2.11 - Undergraduate Thesis
Organization:FRI - Faculty of Computer and Information Science
Year:2026
PID:20.500.12556/RUL-180745 This link opens in a new window
COBISS.SI-ID:275440899 This link opens in a new window
Publication date in RUL:16.03.2026
Views:294
Downloads:62
Metadata:XML DC-XML DC-RDF
:
Copy citation
Share:Bookmark and Share

Secondary language

Language:English
Title:Compiler for a subset of the C programming language
Abstract:
This bachelor's thesis presents the development of a compiler for a subset of the C programming language, targeting the ARM architecture. The compiler is designed to generate assembly code for a 32-bit ARM architecture from input source code written in C. Most elements of the C language defined by the ANSI C standard are supported. The thesis provides a detailed description of all the main components of the compiler, including lexical, syntactic, and semantic analysis, as well as the generation of intermediate and assembly code. Special emphasis is placed on the correct translation of language constructs into ARM assembly, taking into account architectural characteristics such as the limited number of registers and the memory addressing modes. The thesis concludes with examples of compiled programs and the results of testing the compiler.

Keywords:compiler, C, ARM

Similar documents

Similar works from RUL:
Similar works from other Slovenian collections:

Back