Proceedings of the Institute for System Programming of the RAS
RUS  ENG    JOURNALS   PEOPLE   ORGANISATIONS   CONFERENCES   SEMINARS   VIDEO LIBRARY   PACKAGE AMSBIB  
General information
Latest issue
Archive

Search papers
Search references

RSS
Latest issue
Current issues
Archive issues
What is RSS



Proceedings of ISP RAS:
Year:
Volume:
Issue:
Page:
Find






Personal entry:
Login:
Password:
Save password
Enter
Forgotten password?
Register


Proceedings of the Institute for System Programming of the RAS, 2021, Volume 33, Issue 5, Pages 137–154
DOI: https://doi.org/10.15514/ISPRAS-2021-33(5)-8
(Mi tisp632)
 

Developing an llvm-based compiler for stack based tf16 processor architecture

L. V. Skvortsov, R. V. Baev, K. Yu. Dolgorukova, E. Yu. Sharygin

Ivannikov Institute for System Programming of the RAS
Abstract: Development for stack-based architectures is usually done using legacy low level languages or assembly code, so there exists a problem of a high level programming language support for such architectures. In this paper we describe the development process of an LLVM/Clang-based C compiler for stack-based TF16 processor architecture. LLVM was used due to adaptation possibilities of its components for new architectures, such as disassembler, linker and debugger. Two compiler versions were developed. The first version generated code without using stack capabilities of TF16, treating it instead as a register-based architecture. This version was relatively easy to develop and it provided us a comparison point for the second one. In the second version we have implemented a platform independent stack scheduling algorithm that allowed us to generate code that makes use of the stack capabilities of the CPU. When comparing the two versions, a version that utilized stack capabilities generated code that was on average 35.7% faster and 50.8% smaller than the original version. The developed stack scheduling algorithm also allows to support other stack based architectures in LLVM toolchain
Keywords: stack processor, compiler, LLVM.
Document Type: Article
Language: Russian
Citation: L. V. Skvortsov, R. V. Baev, K. Yu. Dolgorukova, E. Yu. Sharygin, “Developing an llvm-based compiler for stack based tf16 processor architecture”, Proceedings of ISP RAS, 33:5 (2021), 137–154
Citation in format AMSBIB
\Bibitem{SkvBaeDol21}
\by L.~V.~Skvortsov, R.~V.~Baev, K.~Yu.~Dolgorukova, E.~Yu.~Sharygin
\paper Developing an llvm-based compiler for stack based tf16 processor architecture
\jour Proceedings of ISP RAS
\yr 2021
\vol 33
\issue 5
\pages 137--154
\mathnet{http://mi.mathnet.ru/tisp632}
\crossref{https://doi.org/10.15514/ISPRAS-2021-33(5)-8}
Linking options:
  • https://www.mathnet.ru/eng/tisp632
  • https://www.mathnet.ru/eng/tisp/v33/i5/p137
  • Citing articles in Google Scholar: Russian citations, English citations
    Related articles in Google Scholar: Russian articles, English articles
    Proceedings of the Institute for System Programming of the RAS
    Statistics & downloads:
    Abstract page:29
    Full-text PDF :7
     
      Contact us:
     Terms of Use  Registration to the website  Logotypes © Steklov Mathematical Institute RAS, 2024