Compiling Files in Parallel: A Study with GCC

Giuliano Belinassi, R. Biener, J. Hubicka, Daniel Cordeiro, A. Goldman
{"title":"Compiling Files in Parallel: A Study with GCC","authors":"Giuliano Belinassi, R. Biener, J. Hubicka, Daniel Cordeiro, A. Goldman","doi":"10.1109/SBAC-PADW56527.2022.00011","DOIUrl":null,"url":null,"abstract":"Processors are becoming increasingly parallel, but compiling software has so far been a task parallelizable only by the number of files in it. To improve compilation parallelism granularity, we propose a method feasible to implement in commercial compilers for single file parallel compilation, with simple modifications in the Link Time Optimization (LTO) engine; which we show by implementing it in GCC. This method resulted in a 35% speedup when self-compiling GCC when compared to make -j only parallelism, and up to 3.5 speedup when compiling individual files. We also explain why the×adoption of our proposed method is still compatible with the Reproducible Builds project.","PeriodicalId":263889,"journal":{"name":"2022 International Symposium on Computer Architecture and High Performance Computing Workshops (SBAC-PADW)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 International Symposium on Computer Architecture and High Performance Computing Workshops (SBAC-PADW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SBAC-PADW56527.2022.00011","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Processors are becoming increasingly parallel, but compiling software has so far been a task parallelizable only by the number of files in it. To improve compilation parallelism granularity, we propose a method feasible to implement in commercial compilers for single file parallel compilation, with simple modifications in the Link Time Optimization (LTO) engine; which we show by implementing it in GCC. This method resulted in a 35% speedup when self-compiling GCC when compared to make -j only parallelism, and up to 3.5 speedup when compiling individual files. We also explain why the×adoption of our proposed method is still compatible with the Reproducible Builds project.
并行编译文件:GCC的研究
处理器正变得越来越并行,但迄今为止,编译软件是一项只能通过其中文件数量来并行化的任务。为了提高编译并行度粒度,我们提出了一种在商业编译器中可行的单文件并行编译方法,只需对链接时间优化(LTO)引擎进行简单修改;我们通过在GCC中实现它来展示这一点。与只使用-j并行相比,这种方法在自编译GCC时的速度提高了35%,在编译单个文件时的速度提高了3.5。我们还解释了为什么我们提出的方法the×adoption仍然与可复制构建项目兼容。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信