A Compiler Comparison in the RISC-V Ecosystem

被引:9
作者
Poorhosseini, Mehrdad [1 ]
Nebel, Wolfgang [1 ]
Gruettner, Kim [2 ]
机构
[1] Carl von Ossietzky Univ Oldenburg, Oldenburg, Germany
[2] OFFIS eV, Oldenburg, Germany
来源
2020 INTERNATIONAL CONFERENCE ON OMNI-LAYER INTELLIGENT SYSTEMS (IEEE COINS 2020) | 2020年
关键词
compiler; embedded software; RISC-V; benchmarking; timing measurement;
D O I
10.1109/coins49042.2020.9191411
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The GNU Compiler Collection (GCC) is the traditional compiler for most embedded systems, since it supports many different instruction set architectures (ISA) in its back-end. GCC has also been the first compiler that supported the RISC-V ISA. Since a while Clang/LLVM has gained more and more interest in the embedded software community. Recently, RISC-V is also supported in the LLVM back-end and maintained in the official LLVM release. In this paper we propose a benchmark environment for the comparison of compilers in the RISC-V ecosystem. We perform a comparison of GCC against LLVM for an embedded software benchmark considering compile time, size of the resulting binary, number of instructions and execution time. The results show that LLVM compiles faster in 88% of the experiments, while GCC and LLVM produce nearly the same binary size in 51% of the experiments. In 37% GCC wins and in 12% LLVM wins. In 94% of the experiments the difference between the resulting binary size in GCC and LLVM is +/- 5%. The execution time analysis shows that in 42% of the experiments GCC and LLVM have nearly the same execution time clock cycles while in 40% GCC wins and in 18% LLVM wins.
引用
收藏
页码:80 / 85
页数:6
相关论文
共 15 条
[1]  
Bjareholt J., 2017, THESIS BLEKINGE I TE
[2]  
Falk H., WCET 2016
[3]  
Faustino A., 2020, 012020 U FED MIN GER
[4]   Near-Threshold RISC-VCore With DSP Extensions for Scalable IoT Endpoint Devices [J].
Gautschi, Michael ;
Schiavone, Pasquale Davide ;
Traber, Andreas ;
Loi, Igor ;
Pullini, Antonio ;
Rossi, Davide ;
Flamand, Eric ;
Gurkaynak, Frank K. ;
Benini, Luca .
IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, 2017, 25 (10) :2700-2713
[5]  
Guobin Y., 2011, THESIS U EDINBURGH
[6]  
Hytonen S., 2018, REPLACING GCC COMPIL
[7]  
Kim J. -J., 2010, 2010 5 INT C EMBEDDE, P1
[8]  
L. Project, 2019, LLVM DOWNL PAG
[9]  
lowRISC Community Interest Company, 2019, LOWR HOM PAG
[10]  
Markall G., 2016, RISC 5 COMPILER PE 1