Original title:
Rozšíření překladače jazyka C o podporu dalších embedded mikroprocesorů
Translated title:
Retargeting of the C language compiler
Authors:
Pončák, Matej ; Macho, Tomáš (referee) ; Petyovský, Petr (advisor) Document type: Bachelor's theses
Year:
2020
Language:
slo Publisher:
Vysoké učení technické v Brně. Fakulta elektrotechniky a komunikačních technologií Abstract:
[slo][eng]
Aby bolo možné programovať určitú cieľovú architektúru v niektorom z vyšších programovacích jazykov, daný prekladač musí túto architektúru podporovať. Práca popisuje štruktúru prekladačov SDCC a LLVM a postup pre vytvorenie podpory pre novú cieľovú architektúru v týchto prekladačoch. Prekladač SDCC je medzi programátormi rozšírený kvôli svojej jednoduchosti a prekladač LLVM zase kvôli svojej veľkej univerzálnosti. Napokon je tento postup implementovaný pre mikroprocesor rady HCS08 v prekladači LLVM.
In order to program a target architecture in one of the high-level programming languages, the compiler must support that architecture. The thesis describes the structure of SDCC and LLVM compilers and the procedure of retargeting these compilers. The SDCC compiler is widespread among programmers for its simplicity and the LLVM compiler for its great reusability. Finally, this procedure is implemented for the HCS08 series microprocessor in the LLVM compiler.
Keywords:
backend; C language; clang; compiler retargetting; hcs08; llvm; sdcc
Institution: Brno University of Technology
(web)
Document availability information: Fulltext is available in the Brno University of Technology Digital Library. Original record: http://hdl.handle.net/11012/194889